您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页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

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

Copyright © 2019- how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务