xcode 4.6 Target Build Setting missing the “Apple LLVM compiler 4.2 - … ” sections

坚强是说给别人听的谎言 提交于 2019-12-20 02:29:08

问题


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:

  1. Start xcode 4.6
  2. File --> New --> Project...
  3. Select an OS X Framework & Library --> Bundle (accept all defaults)
  4. In that project, File --> New --> Target...
  5. Select an iOS Application --> Empty Application (accept all defaults)
  6. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!