Generic iPhone / iPad Windows app with Core Data crashes on iPhone SDK 4 beta 3

I have installed the beta version of iPhone OS 4.0 3. When I create a new universal Windows application with basic data (File> New Project> Windows-Application ---> select "Universal" from the dropdown list and check "Use basic data" for storage ") the app runs fine in the iPhone simulator, but crashes in the iPad simulator.

Console message:

dyld: Symbol not found: _OBJC_CLASS _ $ _ NSURL Links: / 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. Is anyone else experiencing this issue?

+2


a source to share


2 answers


Okay, got it. Place this snippet at the top of your source files using NSURL:

#ifndef __GNUC__
#define __asm__ asm
#endif

__asm__(".weak_reference _OBJC_CLASS_$_NSURL");

      



The app now launches correctly in the iPad simulator.

+2


a source


Any legitimate answer to your question is under the NDA. However, you might be wondering if something like this is mentioned in the "Known Issues" section of the beta release.



+3


a source







All Articles