Xcode - 获取有关为什么选择在构建中包含文件的更多信息?
我有一个项目位于其他项目的复杂树的顶部。构建涉及多个配置文件的处理,其中包括其他配置文件,依此类推。
我的项目正在编译我的顶级前缀标头三次,我不知道为什么。我可以查看构建日志,并看到三个条目“compile foo.pch”。但我不知道为什么会发生这种情况。它每次都会使用略有不同的设置进行编译,如果我对项目进行某些更改,则编译 foo.pch 的三次尝试中有两次会失败。有没有办法分解 Xcode 用来决定以什么顺序构建什么的过程,以便找出发生这种情况的原因?
编辑:Xcode 4.0.2。顶层的架构只有arm7,但是有些子项目有更多的架构。
I have a project that sits at the top of a complicated tree of other projects. The build involves the processing of multiple config files which include other config files, and so on down the tree.
My project is compiling my top-level prefix header three times, and I have no idea why. I can look at the build log, and I see three entries that read "compile foo.pch". But I can't tell why this is happening. It compiles it with slightly different settings each time, and if I make a certain change to my project, two of the three attempts to compile foo.pch fail. Is there any way to break down whatever process Xcode uses to decide what to build in what order, in order to figure out why that is happening?
EDIT: Xcode 4.0.2. Architecture at the top level is only arm7, but some sub-projects have more architectures.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案是,它为直接 C 编译一次,为目标 C 编译一次,为目标 C++ 编译一次。请参阅此处。
The answer is that it is compiling it once for straight C, once for objective C, and once for objective C++. See here.