Xcodebuild:找不到子项目的库
我已经和这个问题斗争了一段时间了,我终于让自己问这个问题了。
在Xcode4中,我有一个带有子项目的项目,子项目有一系列顶级项目需要运行的产品。
当使用构建、运行、实现或使用 xcode4 的任何内容编译项目时,代码运行良好并且构建正确。
但是,当使用 xcodebuild 我的构建失败时,我已经能够通过将目标添加到顶级项目的目标依赖项来构建子项目,但是我收到以下错误:
ld: library not found for -lsubproject
以前有人遇到过这个吗?谢谢。
I've been fighting with this one for a while and i've finally brought myself to asking the question.
In Xcode4 I have a project with a Subproject, and the subproject has a series of products that are made that the top level project needs to run.
When compiling the project using the build, run, achieve or anything using xcode4, the code runs fine and is built correctly.
However, when using xcodebuild my build fails, I have been able to get the subproject to build by adding the targets to the top level project's target dependencies, hower i get the following error:
ld: library not found for -lsubproject
Has anyone run into this before? thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上,这是通过将我的项目转换为使用工作区并设置各种标头搜索设置并为每个工作区配置相同的构建目录来解决的。
Basically this was fixed by converting my project to use workspaces and setting up various header search settings and configuring the same build directories for each workspace.