cocoapods的升级步骤
如未安装cocoapods
,可参考cocoapods安装,或者我其他文章。
很长一段时间未使用,更新不到最新的三方库,便要升级cocoapods
1、升级Ruby环境
sudo gem update --system
2、更新cocoapods
sudo gem install -n /usr/local/bin cocoapods
3、更新repo
(这一步会比较漫长。。。)
pod repo update
或是
pod install --repo-update
最后,Ruby RubyGems (gem 包管理器)
Ruby包管理器gem常用命令。
查看软件版本,可以用gem命令:
gem search 名称
举例说明:
// 比如:
gem search cocoapods
*** REMOTE GEMS ***
cocoapods (1.12.1)
cocoapods-ack_filter (0.2.0)
cocoapods-acknowledgements (1.3.0)
cocoapods-acknowledgements-addons (0.3.0)
cocoapods-acknowledgements-filter (0.1.0)
cocoapods-alexandria (0.3.2)
cocoapods-alibaba-cainiao-environment (0.0.7)
cocoapods-always-be-bundleing (0.0.3)
cocoapods-amicable (0.3.0)
cocoapods-amimono (0.0.10)
cocoapods-aomi-bin (0.1.28)
cocoapods-api-diff (0.1.0)
cocoapods-app_group (0.4.1)
cocoapods-appledoc (0.1.0)
cocoapods-aqarahome (0.0.5)
cocoapods-archive (0.0.2)
cocoapods-archthin (0.0.2)
cocoapods-art (1.1.0)
cocoapods-assets-cleaner (0.1.1)
cocoapods-auto-modular-header (1.0.0)
cocoapods-azure-universal-packages (0.1.0)
cocoapods-backup (0.0.3)
cocoapods-bazel (0.1.5)
cocoapods-bb-bin (0.2.4)
cocoapods-bb-xcframework (0.2.5)
cocoapods-BDTransform (6.0.0)
cocoapods-bin (0.1.30)
cocoapods-bin-cache (0.0.3)
cocoapods-binary (0.4.4)
cocoapods-binary-artifactory-cache (0.0.19)
cocoapods-binary-bel (0.5.4)
cocoapods-binary-bugfix (0.0.3)
cocoapods-binary-cache (0.1.14)
cocoapods-binary-flutter (0.0.10)
cocoapods-binary-gcp (0.0.6)
cocoapods-binary-ht (1.0.0)
cocoapods-binaryhqp (0.5.4)
cocoapods-bindyf (0.1.29.3)
cocoapods-blacklist (0.1.3)
cocoapods-blocklist (0.1.4)
cocoapods-browser (0.1.5)
cocoapods-bugsnag (2.3.0)
cocoapods-cache-proxy (0.0.2)
cocoapods-cafswitcher (0.0.32)
cocoapods-catalyst-support (0.2.1)
cocoapods-check (1.1.0)
cocoapods-check_latest (0.1.0)
cocoapods-checksui (1.0.0)
cocoapods-chillax-swift (0.2.0)
cocoapods-clean (0.0.1)
cocoapods-clean_build_phases_scripts (0.0.3)
cocoapods-cmd (1.0.0)
cocoapods-cn-dwd (0.0.5)
cocoapods-coding-ar (1.0.2)
cocoapods-core (1.12.1)
cocoapods-coverage (0.2.0)
cocoapods-default-install (0.1.1)
cocoapods-deintegrate (1.0.5)
cocoapods-delete-scheme (0.0.2)
cocoapods-dep (1.0.4)
cocoapods-depend (0.1.1)
cocoapods-dependencies (1.3.0)
cocoapods-dependencies-graph (0.0.1)
cocoapods-dependencies-list (1.0.0)
cocoapods-dependency (0.2.0)
cocoapods-dependency-graph (1.0.5)
cocoapods-dependency-html (0.0.2)
cocoapods-dependManager (0.1.2)
cocoapods-dependsay (0.1.0)
cocoapods-deploy (0.0.12)
cocoapods-dev-env (2.2.4)
cocoapods-develop (0.0.1)
cocoapods-developing-folder (0.5.4)
cocoapods-devtool (0.2.0)
cocoapods-diff (0.8.1)
cocoapods-disable-podfile-validations (0.2.0)
cocoapods-docs (0.2.0)
cocoapods-docstats (0.0.3)
cocoapods-dongjia (1.1.11)
cocoapods-downloader (1.6.3)
cocoapods-dykit (0.5.4)
cocoapods-dylint (0.2.0)
cocoapods-embed-flutter (0.6.1)
cocoapods-entitlements-statistics (0.1.5)
cocoapods-expert-difficulty (1.0.0)
cocoapods-extension (0.0.5)
cocoapods-external-pod-sorter (0.0.2)
cocoapods-ezplugin (0.0.2)
cocoapods-fanQiePackager (1.5.0.1)
cocoapods-fast-install (0.0.3)
cocoapods-fix-cache (0.4.0)
cocoapods-fix-module (0.1.1)
cocoapods-fix-module-universal (0.0.2)
cocoapods-fix-react-native (2019.09.17.15)
cocoapods-fix-xcframework-slice (0.1.0)
cocoapods-fixbugs-plugin (0.1.0)
cocoapods-flutter (0.0.1)
cocoapods-flutter-dt (0.2.7)
cocoapods-force-push (0.0.6)
cocoapods-force-static-framework (0.0.8)
cocoapods-foundation-headers (1.0.1)
cocoapods-Framework (0.0.1)
cocoapods-framework-tj (0.0.6)
cocoapods-freezer (1.1.6)
cocoapods-fump (0.1.0)
cocoapods-fy-bin (0.2.8)
cocoapods-gd (0.0.3)
cocoapods-generate (2.2.4)
cocoapods-generate-minlison (1.5.0)
cocoapods-generator (0.0.1)
cocoapods-generator-minlison (0.1.1)
cocoapods-git-tarball (0.1.0)
cocoapods-git2local (0.0.5)
cocoapods-git_url_rewriter (1.0.1)
cocoapods-gitee-repo (1.0.4)
cocoapods-githooks (1.0.3)
cocoapods-gitlab_license_report (1.0.3)
cocoapods-hbh (0.2.1)
cocoapods-hd (0.1.0)
cocoapods-headermap (1.0.7)
cocoapods-hipac (0.0.9)
cocoapods-hllsource (0.0.1)
cocoapods-hmap (0.0.1)
cocoapods-hmap-prebuilt (0.0.7)
cocoapods-hmap-simple (1.0.4)
cocoapods-hooks (0.0.9)
cocoapods-humus (0.1.0)
cocoapods-icemobile-plugin (0.0.8)
cocoapods-imy-bin (0.3.1.3)
cocoapods-imy-hycan-bin (0.1.6)
cocoapods-input-output-cleaner (0.0.2)
cocoapods-install_tal (0.0.1)
cocoapods-installed-pods (0.0.2)
cocoapods-ipub (0.0.2)
cocoapods-jiffy (0.1.3)
cocoapods-jingxi (1.0.0)
cocoapods-jsource (0.0.6)
cocoapods-jumanji (0.1.0)
cocoapods-jxedt (0.0.15)
cocoapods-jyanalyzer (0.1.3)
cocoapods-jysource (1.0.0)
cocoapods-keep-multiversion-cache (0.3.2)
cocoapods-keys (2.3.1)
cocoapods-kocomojo-sdk (0.1.1)
cocoapods-kwai (1.0.2)
cocoapods-label (0.0.2)
cocoapods-lazy (0.4.2)
cocoapods-lhj-bin (0.0.2)
cocoapods-link-filelist (1.0.4)
cocoapods-links (0.3.0)
cocoapods-links-v2 (0.4.0)
cocoapods-lint-onlyx64 (0.1.2)
cocoapods-ljcoverage (0.0.4)
cocoapods-localsource (0.0.6)
cocoapods-localzedLoader (0.1.1)
cocoapods-lockfile (0.1.0)
cocoapods-lzclear (0.0.8)
cocoapods-lzsource (0.2.5)
cocoapods-lzspeed (0.0.4)
cocoapods-mangle (1.1.2)
cocoapods-mapfile (0.2.7.2)
cocoapods-mars (0.0.20)
cocoapods-marstransfer (0.0.3)
cocoapods-meitu-bin (1.1.1)
cocoapods-mexdup (0.0.2)
cocoapods-mexdups (0.0.3)
cocoapods-miBin (0.1.0)
cocoapods-mix-frameworks (0.1.1)
cocoapods-modify-dependency-version (1.0.0)
cocoapods-modularization (0.2.9)
cocoapods-module (0.0.2)
cocoapods-monitor (0.0.3)
cocoapods-monorepo (1.0.4)
cocoapods-mtxx-bin (1.0.0)
cocoapods-multithread-installpod (0.0.8)
cocoapods-myhooks (0.0.2)
cocoapods-NameMappedModule (0.0.1)
cocoapods-nativescript (0.0.1)
cocoapods-nepackage (0.0.2)
cocoapods-nexus (0.0.8)
cocoapods-nexus-plugin (0.0.13)
cocoapods-no-dev-schemes (1.0.1)
cocoapods-ocean_modulemap (0.0.2)
cocoapods-open (0.0.8)
cocoapods-openvessel (1.0.1)
cocoapods-otssource (0.0.2)
cocoapods-pack (1.0.1)
cocoapods-packageall (0.0.3)
cocoapods-packager (1.5.0)
cocoapods-packager-bj (1.5.2)
cocoapods-packager-boco (1.5.3)
cocoapods-packager-clone-master (1.5.2)
cocoapods-packager-ext (0.0.46)
cocoapods-packager-hira (1.5.6)
cocoapods-packager-m (1.6.4)
cocoapods-packager-mls (1.5.0.21)
cocoapods-packager-pro (1.5.4)
cocoapods-packager-qcloud (1.5.18)
cocoapods-packager-tal (1.5.0.19)
cocoapods-packager-test-scl (1.6.2)
cocoapods-packager-tj (1.5.0)
cocoapods-packager-xz (1.0.0)
cocoapods-packagerthk (1.0.4)
cocoapods-packing-cubes (0.4.0)
cocoapods-pahealth-bin (0.0.6)
cocoapods-panglePackager (1.5.0.2)
cocoapods-patch (1.0.2)
cocoapods-pdk8 (0.0.3)
cocoapods-playgrounds (1.2.2)
cocoapods-plugins (1.0.0)
cocoapods-pod-linkage (0.0.1)
cocoapods-pod-merge (0.0.4)
cocoapods-pod-sign (1.3.0)
cocoapods-podfile-generator (0.5.0)
cocoapods-podfile_info (1.0.0)
cocoapods-podfile_patch (0.1.2)
cocoapods-podInstalLocalDepencencies (0.0.4)
cocoapods-podtarget-optimize (0.0.2)
cocoapods-ppbuild (1.0.9)
cocoapods-precompile (0.1.1)
cocoapods-prefer (1.0.1)
cocoapods-project-gen (0.2.5)
cocoapods-project-hmap (0.0.6)
cocoapods-protected-dependencies (0.0.3)
cocoapods-prune-localizations (0.3.1)
cocoapods-publish (1.0.0)
cocoapods-publisher (0.1.0)
cocoapods-push-nolint (0.0.1)
cocoapods-qpodfile (0.0.2)
cocoapods-query (1.0.1)
cocoapods-readonly (1.0.1)
cocoapods-reflect_file_system_structure (0.1.0)
cocoapods-release (0.3.1)
cocoapods-remove-duplicates (0.0.2)
cocoapods-reopen (0.0.1)
cocoapods-replace (0.0.2)
cocoapods-repo-hg (0.1.2)
cocoapods-repo-ram (0.0.4)
cocoapods-repo-rsync (1.0.6)
cocoapods-repo-shard (1.0.0)
cocoapods-repo-sq (0.0.2.14)
cocoapods-repo-svn (3.0.0)
cocoapods-repo-tal (0.0.2)
cocoapods-repo-update (0.0.4)
cocoapods-RepoPush (0.0.1)
cocoapods-resource (0.0.2)
cocoapods-rome (1.0.1)
cocoapods-roulette (1.0.2)
cocoapods-s3-download (0.0.3)
cocoapods-scancode (0.0.2)
cocoapods-schoutedenapus (0.0.2)
cocoapods-search (1.0.1)
cocoapods-show (0.0.2)
cocoapods-show-podpsecs-in-project (0.1.3)
cocoapods-sorted-search (0.2.4)
cocoapods-soul-component-plugin (0.0.20)
cocoapods-sources (0.0.1)
cocoapods-square-stable (0.19.3)
cocoapods-src (0.2.0)
cocoapods-static-framework (1.0.1)
cocoapods-static-frameworks (0.0.1)
cocoapods-static-store (0.1.0)
cocoapods-static-swift-framework (0.5)
cocoapods-static_framework (1.0.3)
cocoapods-stats (1.1.0)
cocoapods-store (0.0.1)
cocoapods-submit (0.2.0)
cocoapods-superdeintegrate (0.0.1)
cocoapods-swift-binary-source-resolver (0.0.4)
cocoapods-swordfish (1.0.1)
cocoapods-sync-githooks (0.0.1)
cocoapods-sync-podspecs (0.3.1)
cocoapods-tag (0.0.7)
cocoapods-taobao-environment (1.0.1.1)
cocoapods-tdf-bin (0.0.35)
cocoapods-tdf-flutter (0.0.32)
cocoapods-tdfire-binary (2.0.9)
cocoapods-templates (0.0.1)
cocoapods-terra-bom (0.0.2)
cocoapods-testing (0.2.0)
cocoapods-testTea (0.0.1)
cocoapods-thumbs (0.1.3)
cocoapods-time-analyze (0.0.4)
cocoapods-timeconsuming (0.0.6)
cocoapods-timeconsuming-details (0.0.3)
cocoapods-tj (1.0.5)
cocoapods-tools (0.1.3)
cocoapods-transform (0.0.1)
cocoapods-triumph-sdk-plugin (0.0.1)
cocoapods-trunk (1.6.0)
cocoapods-try (1.2.0)
cocoapods-try-release-fix (0.1.2)
cocoapods-TSPodfileTimeWatch (0.0.6)
cocoapods-tt (0.0.1)
cocoapods-tuya-oss-publish (0.1.5)
cocoapods-unchanged-source (0.0.1)
cocoapods-unit-test (1.0.0)
cocoapods-unused_pods (0.0.1)
cocoapods-update-if-you-dare (0.2.0)
cocoapods-uploader (0.0.2)
cocoapods-use-frameworks-dynamic-wrapper (0.0.1)
cocoapods-use-latest-tag (1.0.1)
cocoapods-user-defined-build-types (0.0.7)
cocoapods-util (0.2.2)
cocoapods-vbbuildsource (0.0.9)
cocoapods-ve (0.0.22)
cocoapods-vemars (0.0.13)
cocoapods-vipers (0.0.6)
cocoapods-watch (0.1.0)
cocoapods-whitelist (0.3.0)
cocoapods-wholemodule (0.0.1)
cocoapods-why (1.2)
cocoapods-wxpodhook (0.0.6)
cocoapods-x (0.0.5)
cocoapods-xccache (0.0.1)
cocoapods-xcconfig-hooks (0.0.1)
cocoapods-xcconfigEmpty (0.0.1)
cocoapods-xcframework (0.2.4)
cocoapods-xcodegen (1.0.0)
cocoapods-xcremotecache (0.0.16)
cocoapods-xlbuild (1.1.2)
cocoapods-xp-binary-debug (0.0.4)
cocoapods-xzdevelop (1.1.3)
cocoapods-xzlint (0.0.1)
cocoapods-xzpackager (1.0.2)
cocoapods-xzumbrella (0.0.1)
cocoapods-ybin (0.0.4)
cocoapods-ykutility (0.0.13)
cocoapods-youku-environment (0.1.6)
cocoapods-zjbinary (1.0.0)
cocoapods_debug (0.1.0)
cyclonedx-cocoapods (1.1.1)
guard-cocoapods (0.0.1)
motion-cocoapods (1.11.0)
my-cocoapods-packager (1.5.2)
ty-cocoapods-packager (1.5.13)
xcocoapods (1.5.3)
➜ ~
也可以用gem 安装指定版本
#先卸载
sudo gem uninstall cocoapods
// gem uninstall cocoapods
sudo gem install cocoapods -v 1.11.2
//gem install cocoapods -v 1.11.2