如果为多个Targets增加 "Link Binary With Libraries" 的 framework?

2013-12-02 12:19:19 +08:00
 yellowV2ex
一个项目, 大概有十几个类似的Target, 因为持续开发, 增加工具类的时候需要加不同的framework

每次加多一个比如 Security.framework, 就要每个Target都去加一次, 可有什么简便的方法保持多个Target的 "Link Binary With Libraries" 同步?

以及 Build Phases 里的 Compile Sources 加 -fno-objc-arc 什么的
3572 次点击
所在节点    iDev
1 条回复
wtl
2013-12-07 16:21:40 +08:00
使用xcconfig 可以建个Base.xcconfig 每个target的xcconfig都继承于它 相同的设置都写在Base里

这儿是篇教程 http://happygiraffe.net/blog/2010/04/30/xcode-build-settings/
这儿是所有的设置 https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/0-Introduction/introduction.html#//apple_ref/doc/uid/TP40003931-CH1-SW1

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/91469

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX