您的当前位置:首页正文

Carthage初试

来源:要发发知识网

二、开始尝试

3.完成后,会在更目录中生成Carthage文件夹以及Carthage.resolved文件,有点类似Cocoapods。

4.添加依赖Framework
在Build Setting中的Framework Search Path中添加:
$(SRCROOT)/Carthage/Build/iOS
或者在General中Embedded Binaries手动添加

其他:
1.在.gitignore添加Carthage文件
#Carthage
Carthage
2.只支持动态库,iOS8以及iOS8以上
3.设置platform
[--platform (platform)]
the platforms to build for (one of ‘all’, ‘Mac’, ‘iOS’, ‘watchOS’, 'tvOS', or comma-separated values of the formers except for ‘all’)
(ignored if --no-build option is present)
例如:iOS
carthage update --platform iOS