After upgrading Xcode, you need to update cocoapods.
Cocoapods installed but not working appears when executing the shuttle doctor. This means that cocoapods is not installed locally. It may have been cleaned up during the upgrade. Reinstallation required
Problems also occur during installation. Failed to build gem native extension
First check whether cocoapods is installed
pod --version
perhaps
gem list --local | grep cocoapods
If not, perform the installation
sudo gem install -n /usr/local/bin cocoapods
If there is an error:
Building native extensions. This could take a while…
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
Direct use installation
brew install cocoapods
or sudo gem install cocoapods
Wait until it is over and then run
pod --version
If an error is reported, restart the terminal
Installs the specified version of ruby
rvm reinstall ruby-2.6.6
After installation, view all versions
rvm list
Switch Ruby Version
rvm use <version>
Install the specified version of cocoapods
sudo gem install cocoapods -v <version>
Uninstall other versions of cocoapods
sudo gem uninstall cocoapods -v <version>
Read More:
- Cocoapods Install ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension.
- [Solved] Unity Import Xcode Project Error: iOS framework addition failed due to a CocoaPods installation failure.
- Cocoapods Upgrade Error: ffi * * * * [How to Solve]
- How to Solve Cocoapods Installation Failure
- [Solved] ERROR: While executing gem … (Gem::FilePermissionError)
- [Solved] New MAC Unity Develop Error: error installing cocoapods
- [Solved] The Ruby zlib extension was not compiled
- [Solved] Android Studio Error: ERROR: Cause: executing external native build for cmake
- The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
- [Solved] Phone Debug Program Error: The application could not be installed: INSTALL_FAILED_TEST_ONLY
- [Solved] cocoapods Error: Runtimeerror – [xcodeproj] unknown object version
- [Solved] The application could not be installed: INSTALL_FAILED_NO_MATCHING_ABIS
- M1 Computer: How to Solve pod update
- VScode Error: extension failed XHR Failed (Ubuntu Virtual Machine)
- How to Solve Docker ERROR: Service’workspace’ failed to build: ERROR: Service’php-fpm’ failed to build
- How to Solve Xcode M1 simulator Error
- [Solved] Android Studio 4 Error: The application could not be installed: INSTALL_FAILED_OLDER_SDK
- [Solved] Android12 Download Error: The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- [Solved] Tensorflow Error: Failed to load the native TensorFlow runtime.
- Webpack Error: Module build failed: TypeError: this.getOptions is not a function