Easwaramoorthy Kanagaraj
Easwaramoorthy Kanagaraj

Reputation: 4213

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 !

Upvotes: 7

Views: 2242

Answers (4)

Jeremy Huddleston Sequoia
Jeremy Huddleston Sequoia

Reputation: 23623

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.

Upvotes: 3

Ruilong Deng
Ruilong Deng

Reputation: 23

This is official bug in Apple tools. I came across to the same issue these days. Updating to the latest version will be okay.

mac-ruilong:~ winroot$ xcodebuild -showsdks

OS X SDKs:

OS X 10.9                       -sdk macosx10.9
OS X 10.10                      -sdk macosx10.10

iOS SDKs:

iOS 8.1                         -sdk iphoneos8.1

iOS Simulator SDKs:

Simulator - iOS 8.1             -sdk iphonesimulator8.1

Reference: Xcode 5.1 iOS simulator 7.1 black screen issue ( dyld: Symbol not found: __dealloc )

Upvotes: -1

Easwaramoorthy Kanagaraj
Easwaramoorthy Kanagaraj

Reputation: 4213

After few days of struggling came to know that, my OS files got corrupted. So, I have formatted my machine and reinstalled with fresh MAC OS X Mavericks.

Now everything works fine.

Upvotes: 0

James Donald
James Donald

Reputation: 89

Try locating a typo in an import statement, perhaps inport was typed accidentally instead?

Upvotes: -1

Related Questions