'xcodebuild error: "requested but didn't find extension point with identifier ..."
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?
Solution 1:[1]
This command worked out for me: softwareupdate -d -a
.
Reference: https://huckfinnsmoneytree.com/how-to-download-macos-updates-using-the-terminal/
Solution 2:[2]
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
Solution 3:[3]
This worked for me:
Completely turn off Bluetooth.
in ios/ folder of your project, change Podfile to
platform :ios, '12.0'
Run pod deintegrate
in Terminal inside the ios/ folder of your project.
Run pod install --repo-update
in your ios/ folder
Solution 4:[4]
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.
Solution 5:[5]
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.
Solution 6:[6]
multiple xcode.app you need to remove.(Download folder)
- XCode-> Preferences-> Locations -> Command Line Tools
- Check it shows multiple entries for same xcode version.
- Delete xCode.app other than Application folder.
- quit and restart xcode and terminal.
Solution 7:[7]
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.
flutter pub upgrade
flutter pub get
cd ios
pod repo update
> Actually, this was an error for me but ignored itpod install
Also please make sure you are using the latest MacOS
and Xcode
.
I hope this will help someone else.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | kotlinski |
Solution 2 | BoygeniusDexter |
Solution 3 | |
Solution 4 | Shulamite |
Solution 5 | Omatt |
Solution 6 | positivecrux |
Solution 7 | Alex Chengalan |