xcodebuild error: "requested but didn't find extension point with identifier ..."

Viewed 12154

I'm using Xcode 13.3.1.

I'm trying to build a flutter application in Android Studio. It failed with the following error. To make it dead simple I tried just running xcodebuild which produced the same error as in Android Studio:

 .oh-my-zsh git:(master) xcodebuild
2022-04-21 19:45:25.858 xcodebuild[32450:312401] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-04-21 19:45:25.859 xcodebuild[32450:312401] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

xcodebuild: error: The directory /Users/salahuddin/.oh-my-zsh does not contain an Xcode project.

Any idea what causes this error and how to fix it?

8 Answers

Please refer to the message, you can find out solution. https://developer.apple.com/forums/thread/703233

SOLUTION (for me):

I had to first find the software update manually:

softwareupdate --list

This provided me with the following output:

Finding available software Software Update found the following new or updated software:

  • Label: Command Line Tools for Xcode-13.3 Title: Command Line Tools for Xcode, Version: 13.3, Size: 718145KiB, Recommended: YES, I then ran:

softwareupdate -i "Command Line Tools for Xcode-13.3"

(NOTE: You pass the "Label:" output as the string as yours could be different.

I faced the same problem when updating the project with Flutter 3. After several attempts, the below solution worked for me.

I have deleted the podfile.lock file inside the ios folder and then run the below commands.

  1. flutter pub upgrade
  2. flutter pub get
  3. cd ios
  4. pod repo update > Actually, this was an error for me but ignored it
  5. pod install

Also please make sure you are using the latest MacOS and Xcode. I hope this will help someone else.

Looks like you need to install the Xcode command line tools, which you can do by executing the following command in Terminal: xcode-select --install

The error mentions that there's no iOS project to be found on the directory.

xcodebuild: error: The directory /Users/salahuddin/.oh-my-zsh does not contain an Xcode project.

You'd need to navigate to the iOS build of your Flutter project on your terminal with cd ios and run xcodebuild there.

multiple xcode.app you need to remove.(Download folder)

  1. XCode-> Preferences-> Locations -> Command Line Tools
  2. Check it shows multiple entries for same xcode version.
  3. Delete xCode.app other than Application folder.
  4. quit and restart xcode and terminal.

My issue was that I was using Xcode 13.4. I downloaded Xcode 13.3 from here and everything started working again.

I was encountering this issue on a self-hosted GitHub runner so in order for the fix above to work, I needed to:

  1. Uninstall the Xcode 13.4
  2. Remove the GitHub runner
  3. Install Xcode 13.3
  4. Re-add the GitHub runner
Related