Cocoapods使用----配置/安裝/使用/完全卸載(一)
Cocoapods使用----可視化工具(二)
升級(jí)CocoaPods遇到 ERROR: While executing gem ... (TypeError) no implicit conversion of nil into String
如圖:
解決方法:先更新 Ruby
sudo gem update --system
Cocoapods 更新新版本的時(shí)候出現(xiàn)如下問題:
sudo gem install -n /usr/local/bin cocoapods
導(dǎo)入 Cocoapods 中庫文件時(shí)無聯(lián)想(輸入 #import 后捺典,不會(huì)出現(xiàn) "****.h")
解決方法:
Xcode --> target --> Build Setting --> search Paths --> User Header Search Paths从祝,然后輸入 $(PODS_ROOT)哄褒,選擇 recursive。
pod install的時(shí)候出現(xiàn):
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了。