Xcode fails to start Loading a plug-in failed.

Using the Apple Store, I installed Xcode 12.0. However instead of starting, the application displays a small window with a yellow triangle ! stating that the plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.

I trashed Xcode and emptied the trash can and reinstalled, same issue.

Any assistance greatly appreciated.

Carl
Answered by adamretter in 634471022
I think we have the same problem...

I have the Apple Developer Transition Kit (Apple/Arm Silicon) with macOS Big Sur 11.0 Beta (20A5299w) and I am unable to get Xcode to work at all.

I tried to install Xcode, but it hung during the "Installing Components" phase when I first opened it. I then forcefully restarted the computer and now when I open Xcode I see the message Loading a plug-in failed. with the text: The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.. Opening it via the Terminal.app shows:

Code Block
/Applications/Xcode-beta.app/Contents/MacOS/Xcode ; exit;
2020-09-20 12:46:51.273 Xcode[637:9847] [MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEiOSSupportCore (/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore): Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
  Referenced from: /Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore
  Reason: no suitable image found.  Did find:
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice: mach-o, but wrong architecture
/Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice: mach-o, but wrong architecture" UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore, NSDebugDescription=dlopen_preflight(/Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore): Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
  Referenced from: /Applications/Xcode-beta.app/Contents/PlugIns/IDEiOSSupportCore.ideplugin/Contents/MacOS/IDEiOSSupportCore
...


Reinstalling Xcode makes no difference, likewise I downloaded Xcode 12.2-beta and tried to run it, but I receive the same error. How can I get Xcode working on my Developer Transition Kit?
Ok, I'm impressed. After this update, two force-quit of crashed Xcode startups, and a full power-off restart, my DTK is now fully operational, and it seems to have remove the limitation on building iOS apps, too. So I guess I'll keep using it a while longer. I do love the way it runs. I guess the threats of sending it back with a nastygram worked ;)

I know this is old but recently happened to me after upgrading to Monterey 12.6. The reason was because XCode was not properly installed and was fixed with:

xcodebuild -runFirstLaunch.

Source: https://github.com/Homebrew/discussions/discussions/3725#discussioncomment-3783261

Worked perfectly for me.

To fix it reinstall XcodeSystemResources.pkg By running /Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg The installer will recreate /Library/Developer/PrivateFrameworks folder with its content.

Also having same issue with Beta 24A5279h OS and XCODE 16 beta 3

First run this command and set it to the path of the beta version:

sudo xcode-select -s <path/to/>Xcode.app

Then you will have to agree to the license with this command

sudo xcodebuild -license

That will prompt you to display the license and then type agree to accept it.

Then run this command

xcodebuild -runFirstLaunch

And now Xcode will open.

I just had this same issue and this fixed it for me on a M3 Max MacBookPro. I hope this helps!

20
Xcode fails to start Loading a plug-in failed.
 
 
Q