美文网首页
Cocoapods 相关问题

Cocoapods 相关问题

作者: Magician | 来源:发表于2017-10-10 14:15 被阅读521次
Cocoapods使用----配置/安装/使用/完全卸载(一)
Cocoapods使用----可视化工具(二)



升级CocoaPods遇到 ERROR: While executing gem ... (TypeError) no implicit conversion of nil into String

如图:


问题.png

解决方法:先更新 Ruby

sudo gem update --system

Cocoapods 更新新版本的时候出现如下问题:
问题.png
sudo gem install -n /usr/local/bin cocoapods

StackOverFlow


导入 Cocoapods 中库文件时无联想(输入 #import 后,不会出现 "****.h")

解决方法:
Xcode --> target --> Build Setting --> search Paths --> User Header Search Paths,然后输入 $(PODS_ROOT),选择 recursive。

1.png 2.png

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了。

相关文章

网友评论

      本文标题:Cocoapods 相关问题

      本文链接:https://www.haomeiwen.com/subject/bmmvyxtx.html