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)

Most upvoted comments

I received an update on my Feedback Assistant report.

Thank you for filing the feedback report. Please verify this issue with Xcode 15.1 beta 2 and update your bug report with your results by logging into https://feedbackassistant.apple.com/ or by using the Feedback Assistant app.

Xcode 15.1 beta 2 (15C5042i) https://developer.apple.com/download/ Posted Date: October 26, 2023

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-kotlin plugin, because the crash happens after Xcode writes the information about IDEPerformanceDebugger.framework into the plugin cache. The main thing that’s needed is enabling the IDEPerformanceDebugger using the IDEPerformanceDebuggerEnabled property.

I found that property when debugging the Xcode itself and reverse engineering it. I found that the IDEPerformanceDebugger.framework wasn’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.