cocoapod
在cocoa pod 添加 reactivecocoa 的时候会出现如下错误:
1. Pods written in Swift can only be integrated as frameworks; add use_frameworks!
to your Podfile or target to opt into using it. The Swift Pods being used are: ReactiveCocoa and Result
这个错误其实就是让你在添加rac的后边加上 use_frameworks! 这句话(不用带‘’)这个是因为苹果官方不让集成Swift的库有关。
2. 在写pod file的时候得写明target ‘**’ do 并且在结尾写上 end
3. The dependency “ is not used in any concrete target 有的时候自阿哥错误是跟pod 版本有关 查看pod版本:pod –version pod 升级(此时是升级到1.0.0.beta.2版本):sudo gem install cocoapods –pre
4. ERROR: While executing gem … (Errno::EPERM) Operation not permitted - /usr/bin/pod
sudo gem install -n /usr/local/bin cocoapods –pre
随笔小记
最新推荐文章于 2025-01-02 14:28:26 发布