Post

Replies

Boosts

Views

Activity

Reply to Trouble with installing cocoapods
The cause of this problem is an incompatible version of MacOSX.sdk in your current version of Xcode. Usually when there is a new version of Xcode, the MacOSX.sdk that comes with the Xcode-beta is for the next version of MacOS. This wasn't the case this year, Xcode 14, and Xcode 14.02 both had the MacOSX.sdlk for Monterey, but maybe with 14.1, and definitely on Xcode 14.2, Xcode include the MacOSX.sdk for Ventura. If you're still on Monterey, a fresh install of Cocoapods will fail, because it needs a compatible version of the MacOSX.sdk if you do ls -l on the below directory, you can see what version of MacOSX.sdk is included with Xcode. /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs If you have an older version of Xcode on your machine, you can install Cocoapods by doing the following sudo xcode-select -s gem install cocoapods Finally, if none of your Xcodes have the right version of MacOSX.sdk, you can install CommandLineTools for a compatible version of Xcode (The Xcode released the same year your version of MacOS) was released and use the CommandLineTools dir in the Xcode-select command above.
Feb ’23