Posts

Post not yet marked as solved
1 Replies
Is it possible that your xcode-select is not pointing at a valid directory? To see the current directory xcode-select -p To set the directory sudo xcode-select -s
Post marked as solved
19 Replies
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.