Carthage使用记录

在项目根目录下创建Cartfile文件,输入依赖即可:

# Used for socket communication over USB
github "rsms/peertalk" "5a0495a"

github "AFNetworking/AFNetworking"

然后在根目录下执行命令:

carthage update

carthage便会拉取项目代码并用xcodebuild尝试编译。

如果该项目没有 shared framework scheme,就会报如下的错误:

*** Skipped building peertalk due to the error:
Dependency "peertalk" has no shared framework schemes

If you believe this to be an error, please file an issue with the maintainers at https://github.com/rsms/peertalk/issues/new

怎么办呢?

可以简单地只使用 carthage 的 checkout 功能,能 build 的当然可以 build:

carthage checkout

carthage build ocmock - - platform iOS

然后在我们的项目工程中再创建对应的target来引用checkout下来的源文件进行构建

hold

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值