When running in debug mode from Xcode with debug session active, the app launches in the simulator and I am able to debug.
When trying to launch the app in the simulator without debug session (by double clicking on the icon), it crashes with the log message below.
Everything is fine on the real device.
This makes it impossible for me to debug Apple Watch apps, since the iOS version of the app cannot be launched in the background from the Apple Watch.
I am running Xcode 7 beta 3, but I don't think it is a bug, I am probably missing som flag in build settings. Any help is appreciated.
Application Specific Information:
dyld: launch, loading dependent libraries
DYLD_FALLBACK_LIBRARY_PATH=/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
DYLD_ROOT_PATH=/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
DYLD_FALLBACK_FRAMEWORK_PATH=/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks
DYLD_SHARED_REGION=avoid
Dyld Error Message:
Library not loaded: @rpath/SMHI_Parser.framework/SMHI_Parser
Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/807ED0BE-DF53-4914-8847-9708719ECD22/data/Containers/Bundle/Application/C9958BD8-FB34-4937-9072-89A103A92D22/MyApp.app/MyApp
Reason: no suitable image found. Did find:
/Users/Cray/Library/Developer/CoreSimulator/Devices/807ED0BE-DF53-4914-8847-9708719ECD22/data/Containers/Bundle/Application/C9958BD8-FB34-4937-9072-89A103A92D22/Sky Tracker.app/Frameworks/SMHI_Parser.framework/SMHI_Parser: no matching architecture in universal wrapper