就我而言,我正在为每个目标使用单独的Xcode项目.这是最后一步:
In the General tab of the inspector window,add your framework as a dependency for the application. Adding this dependency causes Xcode to
build the framework target before building the application target.The build dependency you establish in the application target causes the framework to be built before the application. This is important because it guarantees that a built version of your framework will be available to link against and to embed in the application. Because of this dependency,you can set the active target of your Xcode project to your application and leave it there. Building the application now builds the framework and copies it to the application bundle directory,creating the necessary linkage between the two.
然而,当单击Target Dependencies中的按钮时,框架不会显示.如何在Xcode 4中的私有框架和应用程序目标之间建立构建依赖关系?
编辑:我应该澄清一点,我已经让私有框架工作了.我只是想避免每次更改框架时都清理项目,并确保框架是在应用程序目标之前构建的.
解决方法
但是,在我的情况下,在删除DerivedData之前,框架目标没有显示为Target Dependencies中的选项.那个讨厌的小虫子让我发疯了.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。