简体   繁体   English

您如何确定XCode使用的构建选项,以便可以将它们与xcodebuild一起使用?

[英]How do you determine the build options that XCode uses so you can use them with xcodebuild?

I want to build my iOS projects with xcodebuild, but to do so I need to figure out all the flags and options that XCode is using to build my project when I build and run in XCode. 我想用xcodebuild构建我的iOS项目,但是要这样做,当我在XCode中构建和运行时,我需要弄清楚XCode用于构建项目的所有标志和选项。

How can I find out what compilation flags and such XCode is using during the build process, so that I can figure out the equivalent xcodebuild command? 如何在构建过程中找出正在使用的编译标志和此类XCode,以便找出等效的xcodebuild命令? I'm especially interested in getting this to work when I'm including external libraries like RestKit in my project. 当我在项目中包含诸如RestKit之类的外部库时,我特别想使它起作用。

All you need to do is tell xcodebuild the target and the configuration; 您需要做的就是告诉xcodebuild目标和配置。 everything else is contained in the project relating to the configuration. 其他所有内容都包含在与组态有关的项目中。

See the manpage . 请参阅联机帮助页

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM