问题
In xcode 4.6, I created a new project with multiple targets. One of my targets, an empty iOS application, is missing all of the "Apple LLVM compiler 4.2 - ..." sections from the Target Build Settings. Anyone else seen this? Any idea on how to get them to display?
I am able to replicate the situation consistently in six steps:
- Start xcode 4.6
- File --> New --> Project...
- Select an OS X Framework & Library --> Bundle (accept all defaults)
- In that project, File --> New --> Target...
- Select an iOS Application --> Empty Application (accept all defaults)
- Goto the iOS Application target's "Build Settings", notice no "Apple LLVM compiler 4.2 - ..." sections
With "Apple LLVM compiler 4.2 - ..." sections
Without "Apple LLVM compiler 4.2 - ..." sections
回答1:
When I created a new project with an initial target that was an OS X Bundle (see step 3 on how to replicate the situation in the question), the default setting for all added targets inherit the projects settings which in this case were for OS X. When I added and iOS Empty Application target, the "Build Settings" were correct, but the "Apple LLVM compiler 4.2 - ..." sections were missing.
I was able to get the "Apple LLVM compiler 4.2 - ..." sections in the "Build Settings" to display for the iOS Empty Application target by changing the Project's (not any of the Targets') "Build Settings" "Architectures" section in the following manor:
Base SDK
from: Latest OS X (OS X 10.8)
to: Latest iOS (iOS 6.1)
Architectures
from: 64-bit Intel
to: Standard (armv7, armv7s)
Then click on the iOS Empty Application target's Build Settings" and there are the "Apple LLVM compiler 4.2 - ..." sections.
来源:https://stackoverflow.com/questions/14967836/xcode-4-6-target-build-setting-missing-the-apple-llvm-compiler-4-2-sect