ios – Xcode cannot load SwiftUI Preview Canvas with error “Loading a plug-in failed.”


When opening Xcode I get a popup with the following error:

Loading a plug-in failed.

The plug-in “com.apple.dt.PreviewsXcode” at path “/Applications/Xcode_14_2.app/Contents/PlugIns/PreviewsXcode.framework” could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged.
The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled.

There is a more detailed error message:

dlopen(/Applications/Xcode_14_2.app/Contents/PlugIns/PreviewsXcode.framework/PreviewsXcode, 0x0109): Symbol not found: _$s9ChronoKit34WidgetPreviewHostingViewControllerCMn
Referenced from: /Applications/Xcode_14_2.app/Contents/PlugIns/PreviewsXcode.framework/Versions/A/PreviewsXcode
Expected in: /System/Library/PrivateFrameworks/ChronoKit.framework/Versions/A/ChronoKit

I am using Xcode 14.2 on macOS 14.1.1 on an Apple Silicon computer.
In order to be able to use this outdated Xcode version I need to start Xcode from the command line like this:

/Applications/Xcode_14_2.app/Contents/MacOS/Xcode ; exit;

The same procedure is working on some colleagues’ machine so I don’t believe it is related.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img