将配置填充到嵌套库项目
我有一个主项目,其中包括一个生成 libCore.a
库的嵌套库项目。
这两个项目都有 debug
和 release
两种配置。现在,如果我使用给定的配置构建主项目,如何确保它也传递到库项目?
I have a main project, which includes a nested library project which produces a libCore.a
library.
Both of the projects have the two configurations debug
and release
. Now if I build the main project with a given configuration, how can I make sure that this is passed down to the library project as well?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
让您的项目直接依赖于
libCore
项目。要实现此目的,请执行以下操作:libCore
项目文件拖到您的主项目中。有时,只有 xcodeproj 文件被移动。如果您遇到这种情况,请重新启动 XCode(我在使用 RestKit 和最新的 XCode 时也遇到过这种情况)。libCore
添加为目标依赖项。libCore.a
。这是 3 个基本步骤,我不知道 libCore 是什么,如果它需要与任何其他库链接,那么您还必须将您的目标链接到这些库。
Make your project directly dependent on the
libCore
project. Do achieve this, do the following:libCore
project file to your main project. It happens sometimes, that only the xcodeproj file is moved. If this happens to you, restart XCode (this happend to me with RestKit and the latest XCode).libCore
as the target dependencies.libCore.a
by adding in the Link Binary with Libraries phase.These are 3 basic steps, I don't know what the
libCore
is, if it needs to be linked with any other libraries then you will also have to link your target against those libraries.