I installed iPhone OS 4.0 Beta 3. When I create a new Windows-based universal app with Core Data (File > New Project > Windows-based Application —> select Universal in drop down and check the “Use Core Data for storage” check box) the app launches fine into the iPhone simulator but crashes in the iPad simulator.
The console message returned is:
dyld: Symbol not found: _OBJC_CLASS_$_NSURL
Referenced from: /Users/tarfa/Library/Application Support/iPhone Simulator/3.2/Applications/5BB644DC-9370-4894-8884-BAEBA64D9ED0/Universal.app/Universal
Expected in: /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.2.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation
I’m stumped. Anyone else experiencing this problem?
Ok, got it. Place this snippet at the top of source files using NSURL:
Now the app launches properly in the iPad simulator.