工程支持xcframework,检查pod版本及更新pod

简介: 工程支持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 https://gems.ruby-china.org/
source https://gems.ruby-china.org/ not present in cache
jgs:~ mac$ gem source -a https://gems.ruby-china.com
source https://gems.ruby-china.com already present in the cache
jgs:~ mac$ gem sources -l
*** CURRENT SOURCES ***

https://gems.ruby-china.com/
https://rubygems.org/

2.保证只有一个ruby源,淘宝的源已经不更新维护了,现在使用ruby-china的源。多余的要移除:

jgs:~ mac$ gem sources --remove https://rubygems.org/
https://rubygems.org/ removed from sources
jgs:~ mac$ gem sources -l
*** CURRENT SOURCES ***

https://gems.ruby-china.com/

3.验证是否替换成功:

gem sources -l

jgs:~ mac$ gem sources -l
*** CURRENT SOURCES ***

https://gems.ruby-china.com/
  1. 更新升级 Gem 版本
    更新升级gem,gem不更新可能导致安装pod失败
    sudo gem update --system
    查看gem版本
    gem -v
jgs:~ mac$ sudo gem update --system
Password:
Latest version already installed. Done.
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

j

jgs:~ mac$ sudo gem install -n /usr/local/bin cocoapods
Fetching activesupport-5.2.6.gem
Fetching ethon-0.14.0.gem
Fetching public_suffix-4.0.6.gem
Fetching ffi-1.15.3.gem
Fetching addressable-2.8.0.gem
Fetching cocoapods-core-1.10.1.gem
Fetching typhoeus-1.4.0.gem
Fetching cocoapods-downloader-1.4.0.gem
Fetching nanaimo-0.3.0.gem
Fetching rexml-3.2.5.gem
Fetching xcodeproj-1.20.0.gem
Fetching cocoapods-1.10.1.gem
Successfully installed activesupport-5.2.6
Building native extensions. This could take a while...
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
Successfully 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
Installing 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 seconds
12 gems installed

6.等待其安装成功,用命令pod --version查看是否安装成功,如果成功会显示pod的版本。

jgs:~ mac$ pod --version
1.10.1

7.更新原来的工程,然后工程就能支持xcframework了,能运行工程成功了。

jgs:LChat mac$ pod update --verbose --no-repo-update
目录
相关文章
|
7月前
|
运维 Kubernetes Cloud Native
k8s学习-Pod(生命周期、探针、模板、创建、删除等)
k8s学习-Pod(生命周期、探针、模板、创建、删除等)
132 0
|
4月前
|
Kubernetes API 调度
在K8S中,创建pod过程?
在K8S中,创建pod过程?
|
2月前
|
Kubernetes Docker Perl
k8s常见故障--yaml文件检查没有问题 pod起不来(一直处于创建中)
k8s常见故障--yaml文件检查没有问题 pod起不来(一直处于创建中)
119 1
|
4月前
|
Kubernetes API 调度
在K8S中,k8s删除pod的过程是什么?
在K8S中,k8s删除pod的过程是什么?
|
4月前
|
Kubernetes API 调度
在K8S中,Pod的创建过程有哪些?
在K8S中,Pod的创建过程有哪些?
|
4月前
|
Kubernetes API 调度
在K8S中,创建pod的过程是什么?
在K8S中,创建pod的过程是什么?
|
4月前
|
存储 Kubernetes 调度
在K8S中,deployment的创建过程包括什么?
在K8S中,deployment的创建过程包括什么?
|
4月前
|
存储 Kubernetes API
在K8S中,Pod删除过程会发生什么?
在K8S中,Pod删除过程会发生什么?
|
4月前
|
Kubernetes API 调度
在K8S中,Pod创建过程包括什么?
在K8S中,Pod创建过程包括什么?
|
4月前
|
Kubernetes API 调度
在K8S中,创建一个Pod的主要流程是什么?
在K8S中,创建一个Pod的主要流程是什么?