Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
666 views
in Technique[技术] by (71.8m points)

ios simulator - iOS weird error: dyld: Symbol not found: __dealloc?

I suddenly getting the below error, which is not allowing any application to run in simulator. The app just crashes.

dyld: Symbol not found: __dealloc
  Referenced from: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
  Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/usr/lib/libobjc.A.dylib
 in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation

Please suggest !

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

As mentioned in the Xcode 6.1 Release Notes, the issue is that you are linking against new frameworks that were added to both Yosemite and iOS 8 while running in iOS 7.1. Unfortunately, this causes dyld to try bringing in the host version of the library when running in the iOS 7.1 simulator runtime.

If an app is weak linked against frameworks new in iOS 8 SDK and OS X 10.10 SDK, it may fail to run if the run destination is an iOS Simulator for older iOS runtimes and the host system is running OS X Yosemite. (17807439)

Additionally, this can occur if your iOS 7.1 simulator runtime is not fully installed (eg: due to an interrupted installation). If this occurs, dyld will similarly fall back to the host for the missing libraries if available.

iOS 8.0 and later have their own dyld that will reject pulling in host versions of libraries and thus will prevent this class of problems in the future.

The iOS 7.1 Simulator runtime that is installed by Xcode 6.2 and later was updated to address this issue.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...