iphone - 每次在 xcode 中构建 "dependent Project"

标签 iphone objective-c ios xcode

我在原始项目中添加了一个小项目作为“依赖项目”。为了优化,Xcode 4.2 不会每次都构建依赖项目。因此,当我在“依赖项目”中更改某些内容时,只要我清理项目并再次构建,它就不会得到反射(reflect)。

有没有办法强制 xcode 每次都构建“依赖项目”?我检查了设置,但没有成功。

最佳答案

只要您修改的文件被您的“依赖项目”的构建任务(即代码文件,库,...)引用,即使在编译父项目时也应该触发构建。但是,当修改的文件是“ 复制捆绑资源 ”构建阶段的一部分时,存在一个已知问题。为避免这种情况,您可以使用仅“接触”“依赖项目”中的代码文件的小脚本。

另见 XCode Project Code Changes Not Updating 100% After Save-Build-Run
How to have Xcode always copy files (even if they have not been detected as modified) when building?

关于iphone - 每次在 xcode 中构建 "dependent Project",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9373231/

相关文章:

iphone - 错误 : Message sent to deallocated instance

ios - 在没有开发者帐户的情况下分发 IOS App

ios - 在 iOS 上阅读短信

ios - 为什么我不能选择 "Latest iOS"作为基础 SDK?

iphone - 在 iOS Game Kit 中,是接收数据 :fromPeer:inSession:context part of a delegate protocol?

objective-c - 重写为 NSDocument 加载多个文件的方法

ios - 带数组 iOS 的 JSON 字符串

objective-c - 适用于 armv7 和 arm64 的 Theos

ios - 在容器 View 中加载 ViewController

ios - UIView 中的 safeAreaInsets 在 iPhone X 上为 0