I'm looking for ways to find clues about an app that builds successfully but gets a fatal error during loading (using the simulator) with "_dyld_dyld_fatal_error" showing in the XCode Debugger menu bar call stack display
the prior call on the stack was to _dyld_ZN4dyld5_mainEPK11mach_headermiPPKcS5_S5_
The console shows the following message associated with this
That's the sort of message I usually see in the system console, not your app's console. Go to Run > Console to see the messages from your app. Post back if you think you see anything useful in there after the startup stuff (Attaching to process, possibly "unable to find symbols", resolving breakpoints, switching to thread)
If there are no useful messages in the app console, you'll have to put a breakpoint or NSLog at the beginning of applicationDidFinishLaunching . If you get that far you can step through the rest of the code until you crash.
To Smasher's helpful reply Run Console shows the output below, Identifying CFXMLNodeGetInfoPtr as a symbol not found. When I google this, I find another post from today in another forum with the same error, but no fixes/
This GDB was configured as "i386-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 4021.
Pending breakpoint 1 - ""treedbViewController.m:12" resolved
Pending breakpoint 2 - ""treedbViewController.m:21" resolved
Pending breakpoint 3 - ""treedbAppDelegate.m:21" resolved
dyld: Symbol not found: _CFXMLNodeGetInfoPtr
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
I get the same (above) error when I built for the Simulator. When I built for the device, I got the following errror:
Code:
run
Running…
[Switching to thread 11779]
[Switching to thread 11779]
continue
dyld: Symbol not found: _OBJC_CLASS_$_NSURL
Referenced from: /var/mobile/Applications/96484668-2FE0-49DA-8DD0-788AAD490325/iNotate.app/iNotate
Expected in: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /var/mobile/Applications/96484668-2FE0-49DA-8DD0-788AAD490325/myApp.app/imyApp
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Not safe to call dlopen at this time.)
I think it's a loader error - either you're using a framework but you didn't import it into your project, or you're using a framework that is not supported on the OS you're using, or (if it's a third party library) the library needs to be recompiled.
I double-checked for all frameworks....and whichever ones that I used in previous SDK are also present in the current project. This lack of backward compatibility is mighty confusing, unfortunately.
I am using the following frameworks:
CoreGraphics
CoreLocation
MapKit
Foundation
MessageUI
UIKit
The only library that comes to my mind is the one for the Facebook Connect functionality that I am using for my app. Do you think that I need the 4.0 version of that library?