⼯程⽀持xcframework,检查pod版本及更新pod
⼯程不认识xcframework.
需要将pod升级到1.10.0及其以上的版本,pod新版本才⽀持xcframework
检查pod版本
jgs:~ mac$ pod --version
1.8.4
具体解决⽅案:
1. 替换ruby源
美国运筹学专业排名jgs:~ mac$ gem sources --remove gems.ruby-china/el capitan
source gems.ruby-china/ not prent in cache
jgs:~ mac$ gem source -a
source already prent in the cache
jgs:~ mac$ gem sources -l
*** CURRENT SOURCES ***
/
rubygems/
2.保证只有⼀个ruby源,淘宝的源已经不更新维护了,现在使⽤ruby-china的源。多余的要移除:
jgs:~ mac$ gem sources --remove rubygems/
rubygems/ removed from sources
jgs:~ mac$ gem sources -l
*** CURRENT SOURCES ***
/
3.验证是否替换成功:
gem sources -l
jgs:~ mac$ gem sources -l
*** CURRENT SOURCES ***
/
权力的游戏第二季104. 更新升级 Gem 版本
更新升级gem,gem不更新可能导致安装pod失败
sudo gem update --system
查看gem版本
gem -v
jgs:~ mac$ sudo gem update --system
Password:
Latest version already installed. Done.
reception动词
jgs:~ mac$ gem -v
3.0.3
5. 安装CocoaPods
如果mac系统为OS X 10.11 以前安装命令为:
sudo gem install cocoapods // 安装cocoapods搭配 英文
Mac系统为OS X EL Capitan安装命令为:
sudo gem install -n /usr/local/bin cocoapods
jgs:~ mac$ sudo gem install -n /usr/local/bin cocoapods
长沙日语Fetching activesupport-5.
Fetching ethon-0.
Fetching public_suffix-4.
proofreadFetching ffi-1.
Fetching addressable-2.
Fetching cocoapods-core-1.
Fetching typhoeus-1.
Fetching cocoapods-downloader-1.
Fetching nanaimo-0.
Fetching rexml-3.
Fetching xcodeproj-1.
Fetching cocoapods-1.
暴走是什么意思
Successfully installed activesupport-5.2.6
Building native extensions. This could take
Successfully installed ffi-1.15.3
Successfully installed ethon-0.14.0
Successfully installed typhoeus-1.4.0
Successfully installed public_suffix-4.0.6
Successfully installed addressable-2.8.0
Successfully installed cocoapods-core-1.10.1
moraySuccessfully installed cocoapods-downloader-1.4.0
Successfully installed nanaimo-0.3.0
Successfully installed rexml-3.2.5
Successfully installed xcodeproj-1.20.0
Successfully installed cocoapods-1.10.1
Parsing documentation for activesupport-5.2.6
Installing ri documentation for activesupport-5.2.6
Parsing documentation for ffi-1.15.3
Installing ri documentation for ffi-1.15.3
Parsing documentation for ethon-0.14.0
Installing ri documentation for ethon-0.14.0
Parsing documentation for typhoeus-1.4.0
Installing ri documentation for typhoeus-1.4.0
Parsing documentation for public_suffix-4.0.6
jiyuInstalling ri documentation for public_suffix-4.0.6
Parsing documentation for addressable-2.8.0
Installing ri documentation for addressable-2.8.0
Parsing documentation for cocoapods-core-1.10.1
Installing ri documentation for cocoapods-core-1.10.1
Parsing documentation for cocoapods-downloader-1.4.0
Installing ri documentation for cocoapods-downloader-1.4.0
Parsing documentation for nanaimo-0.3.0
Installing ri documentation for nanaimo-0.3.0
Parsing documentation for rexml-3.2.5
Installing ri documentation for rexml-3.2.5
Parsing documentation for xcodeproj-1.20.0
Installing ri documentation for xcodeproj-1.20.0
Parsing documentation for cocoapods-1.10.1
Installing ri documentation for cocoapods-1.10.1
Done installing documentation for activesupport, ffi, ethon, typhoeus, public_suffix, addressable, cocoapods-core, cocoapods-downloader, nanaimo, rexml, xcodeproj, cocoapods after 43 conds
12 gems installed
6.等待其安装成功,⽤命令pod --version查看是否安装成功,如果成功会显⽰pod的版本。
jgs:~ mac$ pod --version
1.10.1
7.更新原来的⼯程,然后⼯程就能⽀持xcframework了,能运⾏⼯程成功了。
jgs:LChat mac$ pod update --verbo --no-repo-update