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?
9
Answers
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
This command worked out for me:
softwareupdate -d -a
.Reference: https://huckfinnsmoneytree.com/how-to-download-macos-updates-using-the-terminal/
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/ folderhttps://solveforums.msomimaktaba.com/threads/solved-flutter-for-ios-run-build-but-not-archive.699314/
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:
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.
The error mentions that there’s no iOS project to be found on the directory.
You’d need to navigate to the iOS build of your Flutter project on your terminal with
cd ios
and runxcodebuild
there.multiple xcode.app you need to remove.(Download folder)
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 theios
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
andXcode
.I hope this will help someone else.
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:
Try This.
Remove any command line tools:
Reinstall them:
Tell the system to use them:
If still not working, try that: