sud*_*all 1 cocoapods alamofire swifty-json xcode7 swift2
我一直在项目中使用SwiftyJSON和Alamofire.最近我下载了XCode 7 beta.SwiftyJSON和Alamofire都有Swift 2的独立非主分支.有没有办法通过CocoaPods获取这些,或者我是否需要以传统方式安装它们?
我尝试在CocoaPods网站上搜索,看看这些分支是否已作为单独的Pod提交,但没有出现.我想知道是否有一个Podfile语法允许你获得一个非主分支.
您可以在Podfile中指定存储库中的任何分支.
我用于Alamofire的示例:
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :branch => 'swift-2.0'
Run Code Online (Sandbox Code Playgroud)
更改Podfile中的行然后pod install再次运行.
还有这种替代语法:
pod 'Alamofire', git: 'https://github.com/Alamofire/Alamofire.git', branch: 'swift-2.0'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
803 次 |
| 最近记录: |