iOS App crashing before entering main() with Xcode 4.2 & iOS 5

后端 未结 12 2679
一整个雨季
一整个雨季 2020-12-10 12:50

Background

After upgrading xcode4.1/ios4 to xcode4.2/ios5 I am experiencing crashes while the App is loading and before it even enters main().

12条回答
  •  旧巷少年郎
    2020-12-10 13:13

    You can apply the linker flag conditionally to iOS SDKs but not the iPhone Simulator in XCode 4.

    Select Other Linker Flags, click Add Build Setting, choose Add Conditional Setting, and apply -weak_library /usr/lib/libSystem.B.dylib just for iOS SDK.

    This lets simulator builds still work.

提交回复
热议问题