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
fly2never
V2EX  ›  iDev

Cocoa 生态圈什么时候才能有类似 maven 这样的静态库依赖仓库

  •  
  •   fly2never · 2015-05-12 08:48:55 +08:00 · 3540 次点击
    这是一个创建于 3278 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Cocoapods很好用, 但是默认都是源码依赖, 每次项目clean后rebuild pods target, 时间慢的伤心, 对于第三方库, 我就希望类似于jar形式二进制依赖, 用.a多好, 省去反复编译时间.
    12 条回复    2015-05-14 17:54:12 +08:00
    arron
        1
    arron  
       2015-05-12 09:08:18 +08:00
    你可以编译成静态库再放进去的。给你了静态库你又会来要源码的。有时候你需要知道实现方式。
    isaced
        2
    isaced  
       2015-05-12 09:17:49 +08:00
    Carthage
    vincentxue
        3
    vincentxue  
       2015-05-12 09:24:07 +08:00
    @isaced Carthage 也是用源码编译的。
    fly2never
        4
    fly2never  
    OP
       2015-05-12 09:35:50 +08:00
    @arron 第三方库我如果都要用, 都要去手动编译静态库, 很麻烦. 0.36可以打包Framework, 倒是可以考虑拖出来直接用. 源码也很简单啊, Maven库里同时提供jar和源码两种下载. IDE支持也很好
    66450146
        5
    66450146  
       2015-05-12 10:38:11 +08:00
    现在的 Xcode 已经支持 framework 打包,但是只支持 iOS 8+,估计明年的这个时候就能都用上了
    TimLang
        6
    TimLang  
       2015-05-12 10:41:19 +08:00
    早就有了,cocoapods啊
    fly2never
        7
    fly2never  
    OP
       2015-05-12 11:09:26 +08:00
    @TimLang CocoaPods默认不是静态的
    isaced
        8
    isaced  
       2015-05-12 11:59:07 +08:00
    @vincentxue Carthage 可以编译成 Framework ,引用进来就不用每次都编译啦
    soulgain
        9
    soulgain  
       2015-05-12 13:12:27 +08:00
    @isaced +1
    wity_lv
        10
    wity_lv  
       2015-05-12 17:50:28 +08:00
    clean的时候不clean pod target
    如果是CI上使用, 读取代码使用 git pull
    fly2never
        11
    fly2never  
    OP
       2015-05-14 06:36:47 +08:00
    @wity_lv 怎么做到只clean主工程, 不clean pod target
    wity_lv
        12
    wity_lv  
       2015-05-14 17:54:12 +08:00
    @fly2never sorry. clean 之后 cocoapods 是要重新编译的.
    可以试试这个
    https://github.com/Carthage/Carthage
    把依赖库编译成静态库使用.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2270 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:06 · PVG 16:06 · LAX 01:06 · JFK 04:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.