xcode-kotlin: Xcode 15 beta crashes on launch if Xcode-kotlin is installed
Install Xcode 15.0
I used build (15A5195l) - beta 4
Launch Xcode-beta
Xcode immediately crashes
run xcode-kotlin uninstall and Xcode-beta runs as expected.
I am running on an M series MBP with macOS 13.4.1 ©.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 18 (9 by maintainers)
I received an update on my Feedback Assistant report.
I downloaded the new Xcode beta, cleared my caches, and it opened just fine. I then cleared the cache for the old version and tried it again—and it crashed. So I believe Apple has resolved this issue even without the workaround.
@qhhonx No need to uninstall the
xcode-kotlinplugin, because the crash happens after Xcode writes the information aboutIDEPerformanceDebugger.frameworkinto the plugin cache. The main thing that’s needed is enabling theIDEPerformanceDebuggerusing theIDEPerformanceDebuggerEnabledproperty.I found that property when debugging the Xcode itself and reverse engineering it. I found that the
IDEPerformanceDebugger.frameworkwasn’t being loaded by Xcode, because the property has no value and therefore it defaulted to false.Ladies and gentlemen, I have found a solution to this problem. It is preliminarily judged to be a bug in Xcode. The main cause of the problem is that an exception occurs in the cache directory of Xcode. The path is similar to “/private/var/folders//64/dz_kmw9x0qbd96ffx05gmdkr0000gp/C/com.apple.DeveloperTools/15.0-15A240d/Xcode/PlugInCache-Debug.xcplugincache”. This file is missing the information of the “/Applications/Xcode.app/Contents/PlugIns/IDEPerformanceDebugger.framework” file in its plugin information, causing Xcode to have an exception when loading the plugin. If the IDEPerformanceDebugger information in PlugInCache-Debug.xcplugincache is supplemented, Xcode can be started normally and the plugin can be used. This was discovered while reverse engineering Xcode. The specific solution may require further research, I’m just providing an idea.