pod 创建自定义库失败后解决方案

遇到以上问题:

Cloning `https://github.com/CocoaPods/pod-template.git\` into `GlobalButton`.

Configuring GlobalButton template.

Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5

/Library/Ruby/Site/2.6.0/rubygems/specification.rb:1458:in `rescue in block in activate_dependencies': Could not find 'rexml' (~> 3.2.4) among 38 total gem(s) ( Gem::MissingSpecError)
。。。。。。。。。。。。。此处省略中间部分

To learn more about the template see `https://github.com/CocoaPods/pod-template.git\`.

To learn more about creating a new pod, see `https://guides.cocoapods.org/making/making-a-cocoapod\`.

解决方案:

gem install --user-install rexml

gem install --user-install xcodeproj

执行**pod lib create GlobalButton,**运行成功。

相关推荐
秋雨梧桐叶落莳20 天前
【iOS】从源码深入理解RunLoop机制
macos·ios·objective-c·cocoa·cocoapods·uikit
17715574312 个月前
Mac 上 Ruby、gem、rvm、CocoaPods 四者关系通俗讲清楚
macos·ruby·cocoapods
Aftery的博客6 个月前
HBulider项目打包上传到App Store需要的证书和私钥文件
uni-app·cocoapods
ITKEY_6 个月前
macOS flutter开发环境之cocoapods
flutter·macos·cocoapods
风早爽太7 个月前
使用 CocoaPods 出现 SSL 证书验证失败错误的临时解决方案
ssl·cocoapods
RollingPin9 个月前
sudo gem install cocoapods 报错处理1
ssl·cocoapods·error·gem·安装失败
ShawnRacine9 个月前
iOS开发-安装cocoapods
ios·xcode·cocoapods
Aftery的博客10 个月前
flutter运行macos报错:Error: CocoaPods not installed or not in valid state.
flutter·macos·cocoapods
黄毛火烧雪下1 年前
ruby 、gem 和 cocoapods的联系与区别
开发语言·ruby·cocoapods