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

文章讲述了在使用CocoaPods时遇到的问题,如Cloningpod-template到GlobalButton项目时因rexmlgem缺失引发错误。解决方法是用户安装rexmlgem并执行podlibcreateGlobalButton。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

遇到以上问题:

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,运行成功。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值