Unusual errors in xcodebuild

I am getting the following errors when running xcodebuild from the command line:

xcodebuild[22187:279813] 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

xcodebuild[22187:279813] 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

What does this mean, and how do I fix it?

The solutions here didn't work for me, but then I looked in Xcode's Preferences under the Locations tab and saw that the Command Line Tools popup was blank. Selecting a toolset from that fixed the problem for me.

@veda2wratha, what did you do to solve this issue?

This happened to me when using git clone command. From what i've read throw this thread this will happed when XCode has some available updates for the command line tools. By simply updating Xcode and all it's components the messages where gone

This where the messages: 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

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

A similar thread: https://developer.apple.com/forums/thread/698628

I had the same issues with my M1 mac, getting constantly annoying kernel warnings spamming my log output when using some of the tools bundled with Xcode, such as xcodebuild. None of the solutions above or elsewhere helped, such as resetting (sudo xcode-select -r), reinstalling command line tools (sudo rm -rf /Library/Developer/CommandLineTools; sudo xcode-select --install), exporting SDKROOT environment variable (export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)), installing older Xcode versions from Apple's website (https://developer.apple.com/download/all/?q=xcode and then sudo xcode-select -s /Applications/Xcode_13_0.app) -- in fact older versions made it worse and in Xcode 13.4 they fixed at least the symbol collisions with libauthinstall.dylib and when I switched to older versions they came back.

This is consistently triggered when just using xcodebuild -h command.

This is very annoying, especially for users using the command line. I even tried filtering them through /etc/asl.conf with custom rules and failed, so my solution for now (although ugly, but works) is to wrap the xcodebuild command with a script that greps out the annoying logs that do not affect the build:

  • Rename xcodebuild executable to xcodebuildd:

sudo mv /Applications/Xcode.app/Contents/Developer/usr/bin/{xcodebuild,xcodebuildd}

  • Create the wrapper script filtering annoying messages:

sudo vim /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

  • Paste this:
#!/bin/bash
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuildd "${@}" 2>&1 | grep -vE "is implemented in both /usr/lib/libauthinstall\.dylib|with identifier Xcode\.IDEKit"
  • Add permissions to execute:

sudo chmod +x /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild

And viola, clean output!

Note however that this may cause problems if your application parses xcodebuild's output, because in some cases it outputs the process name (e.g. when using xcodebuild -h). In that case, it's a little bit more tricky to make it output the same xcodebuild name, since if we move it to a custom directory, the @rpath libraries where xcodebuild depends upon are relative to the executable, so if we move it to a different directory, we need to change the executable @rpaths to absolute paths and then force sign it. This can be done with the following commands:

cd /tmp
cp /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuildd xcodebuild
install_name_tool ./xcodebuild \
  -add_rpath /Applications/Xcode.app/Contents/Frameworks \
  -add_rpath /Applications/Xcode.app/Contents/SystemFrameworks \
  -add_rpath /Applications/Xcode.app/Contents/SharedFrameworks \
  -add_rpath /Applications/Xcode.app/Contents/PlugIns

codesign -s '-' xcodebuild -f
sudo mkdir -p /Applications/Xcode.app/Contents/Developer/usr/bin/ext
sudo mv xcodebuild /Applications/Xcode.app/Contents/Developer/usr/bin/ext/xcodebuild

So now we can update our wrapper script to use it instead:

#!/bin/bash
/Applications/Xcode.app/Contents/Developer/usr/bin/ext/xcodebuild "${@}" 2>&1 | grep -vE "is implemented in both /usr/lib/libauthinstall\.dylib|with identifier Xcode\.IDEKit"

Probably resetting the mac to factory settings may help with things, but if this is not an option for you, hopefully this temporarily solution helps until Apple fixes this issue.

There is an error in file /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEWatchSupportCore.ideplugin/Contents/Resources/IDEWatchSupportCore.xcplugindata

You should make its backup, then open it in plist editor and fully remove the following items:

  1. Root/plug-in/extensions/Xcode.DebuggerFoundation.AppExtensionHosts.watchOS
  2. Root/plug-in/extensions/Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS

In my case issue is resolved after deleting the build order from previous unity builds

In Xcode 13 Go to General => builds phases => Bundle React Native code and images, delete every file in input files and input files lists and also in output files and output files list. as shown in the following screenshot. then uncheck Run script "Based on dependency analysis

Had the same issue. in my case it was because the flutter application file was saved on my one drive . when I move the file to desktop or anywhere on the MacBook it worked for me.

Carl Olsen's answer worked for me: "sudo xcode-select -s /Library/Developer/CommandLineTools".

If you're seeing this, as I was, when trying to use git in Terminal, you may need to install Xcode command line tools. I needed to do this for Xcode 14 beta 4 and now again for beta 5. In Xcode, choose Open Developer Tool from the Xcode menu (first menu), then choose More Developer Tools... This will send you to the Apple Developer site, where you can download what you need.

Trying to export an iOS app from a Godot project, I ran into this same Requested but did not find extension point error. I tried nearly all of the solutions found in StackOverflow and in this thread (updating/reinstalling Godot/Xcode/Command Line Tools, selecting Command Line Tools path in Xcode, etc.), and nothing worked for me. Finally, I went through the output of Godot & xcodebuild line-by-line and found this error:

Failed to create provisioning profile. There are no devices registered in your account on the developer website. Select a device run destination to have Xcode register it.

Once I registered my iPhone 11 and Intel MacBook Pro on the Certificates, Identifiers & Profiles screen in my Apple Developer Account, the export completed without errors.

I have this error while building Flutter app on Command Line. I tried all the above fix but it did not work. I solve the error by reading the Xcode output error below this and I followed the instruction to fix the error. In my own case the error was:

lib/pages/cart/payment.dart:82:32: Error: The method 'showSnackBar' isn't defined for the class 'ScaffoldState'.

 - 'ScaffoldState' is from 'package:flutter/src/material/scaffold.dart' ('../../../../flutter/packages/flutter/lib/src/material/scaffold.dart').
Try correcting the name to the name of an existing method, or defining a method named 'showSnackBar'.
          Scaffold.of(context).showSnackBar(

I discovered that scaffold syntax is deprecated, so, I googled the right syntax and changed "Scaffold.of(content)" to "ScaffoldMessenger.of(content)".

THIS MAY NOT BE THE ERROR IN YOUR CASE, BUT CALM AND STUDY THE ERROR.

Sorry to resurrect this year old thread, but it's the first result for this error on Google and figured future visitors deserve the command: xcode-select --install. This is sometimes required after macOS upgrades, and resolved this error for me.

Unusual errors in xcodebuild
 
 
Q