Strange issue after upgrading to iOS 4.1 SDK

后端 未结 3 1328
攒了一身酷
攒了一身酷 2020-12-02 11:21

I\'ve upgraded the iOS SDK to the newly released 4.1 and now I have the following error while building my app:

/DeveloperBeta/Platforms/iPhoneSimulator.pla         


        
3条回答
  •  不知归路
    2020-12-02 12:15

    I have this problem when using the LLVM compiler. Try recompiling using GCC and the problem (for me) goes away.

    I'll keep investigating to determine if it is a general toolchain issue or if it's specific to my configuration.

    --update:

    So it looks like an issue with CLANG. LLVM GCC 4.2 works fine.

    I still think it is likely a problem with my configuration. Even an empty project will not compile under LLVM CLANG 1.5 for me.

    --update 2:

    So it seems that the minimum required version setting is not being honoured in the project info settings. I've manually set it via:

    Other C Flags: -D__IPHONE_OS_VERSION_MIN_REQUIRED=031300

    (for minimum of iOS 3.1, obviously - if you require a later version then you can use 040100 for version 4.0)

    It does seem only to be a simulator problem with CLANG/LLVM. Compiling for the device directly seems to work just fine.

提交回复
热议问题