随笔小记
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
總結
- 上一篇: 阿里巴巴sentinel限流
- 下一篇: 计算天数