LLVM 2.0 can't build for iPhone simulator. GCC 4.2 works fine

前端 未结 4 1852
攒了一身酷
攒了一身酷 2021-02-09 13:48

When I build my project (any project, really - I tried creating a new empty project with the same results), it builds fine with GCC 4.2 under either Xcode4 or Xcode 3.2.4.

4条回答
  •  温柔的废话
    2021-02-09 14:23

    Might be a bug in Xcode 3.2.4 or the SDK configuration.

    Try placing a line like one of these in your Build Settings Preprocessor Macros:

    -D__IPHONE_OS_VERSION_MIN_REQUIRED=040100 
    

    or

    -D__IPHONE_OS_VERSION_MIN_REQUIRED=030103
    

提交回复
热议问题