简体   繁体   English

Xcode-在依赖项目上设置其他C标志

[英]Xcode - Setting Other C Flags on dependent projects

I have an Xcode project (for an iPhone application) that uses cocos2d. 我有一个使用cocos2d的Xcode项目(用于iPhone应用程序)。 I have cocos2d set up as a dependent project, so it builds alongside my project. 我已经将cocos2d设置为从属项目,因此它与我的项目一起构建。

Now I need to set a compiler flag to Cocos, and I can't find where to do it. 现在,我需要为Cocos设置一个编译器标志,而我找不到在哪里做。

I tried setting the compiler flag in my build settings, but it doesn't propagate to the dependent projects. 我尝试在构建设置中设置编译器标志,但是它不会传播到相关项目。 I checked the different Get Info panels, but I cannot find where to do it. 我检查了不同的“获取信息”面板,但是找不到在哪里做。

It seems to me that this should be possible, since the dependent projects come from svn:externals and it makes no sense to have to change the build settings in these projects. 在我看来,这应该是可行的,因为从属项目来自svn:externals,因此不必更改这些项目中的构建设置。

Any hint? 有什么提示吗?

There is no way to have your project settings automatically propagate to a dependent project (you probably wouldn't want that usually anyways). 没有办法让您的项目设置自动传播到一个从属项目(您可能无论如何通常都不想这样做)。

You have to set it in the dependent project (either for the entire project or a specific target). 您必须在从属项目中设置它(针对整个项目或特定目标)。

Ie, double click the dependent project to open it then change the compiler flags as you would in any project. 即,双击从属项目以将其打开,然后像在任何项目中一样更改编译器标志。

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

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