Xcode cannot run using the selected device after upgrade to Xcode 5.0

后端 未结 8 2047
南笙
南笙 2021-02-02 09:53

I upgraded to xcode 5.0 today. I then pressed play to run my project in the iOS simulator. This initially worked. Then I decided that I wanted to run the profiler. When I did th

8条回答
  •  滥情空心
    2021-02-02 10:13

    I had to change compiler for Default compiler (Apple LLVM 5.0) at two places:

    1. Build Settings > Build Options > Compiler for C/C++/Objective-C (change to LLVM)
    2. Build Rules > Files *.mc using GCC (change to LLVM)

    Hard to find because code compiles even if Build Rules point to an undefined compiler.

提交回复
热议问题