Cocoapods使用----配置/安装/使用/完全卸载(一)
Cocoapods使用----可视化工具(二)
升级CocoaPods遇到 ERROR: While executing gem ... (TypeError) no implicit conversion of nil into String
如图:
解决方法:先更新 Ruby
sudo gem update --system
Cocoapods 更新新版本的时候出现如下问题:
sudo gem install -n /usr/local/bin cocoapods
导入 Cocoapods 中库文件时无联想(输入 #import 后,不会出现 "****.h")
解决方法:
Xcode --> target --> Build Setting --> search Paths --> User Header Search Paths,然后输入 $(PODS_ROOT),选择 recursive。
pod install的时候出现:
The `*** [Prerelease]` target overrides the `GCC_PREPROCESSOR_DEFINITIONS` build setting defined in `Pods/Target Support Files/Pods-HRMSForEmployee/Pods-HRMSForEmployee.prerelease.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
解决办法:Targets–>Build Settings–>Preprocessor Macros,加上$(inherited),然后重新pod install就OK了。