V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
yellowV2ex
V2EX  ›  iDev

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

  •  
  •   yellowV2ex · 2013-12-02 12:19:19 +08:00 · 3559 次点击
    这是一个创建于 3769 天前的主题,其中的信息可能已经有所发展或是发生改变。
    一个项目, 大概有十几个类似的Target, 因为持续开发, 增加工具类的时候需要加不同的framework

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

    以及 Build Phases 里的 Compile Sources 加 -fno-objc-arc 什么的
    1 条回复    1970-01-01 08:00:00 +08:00
    wtl
        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
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3801 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 10:35 · PVG 18:35 · LAX 03:35 · JFK 06:35
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.