touchlab / xcode-kotlin

Kotlin Native Xcode Plugin
https://touchlab.co/xcodekotlin
Apache License 2.0
1.15k stars 47 forks source link

Xcode 15 beta has issues #95

Closed kpgalligan closed 10 months ago

kpgalligan commented 1 year ago

Various reports have come in that Xcode 15 does not work. Xcode 15 is still in beta, so this may not be an issue, but we are always at the mercy of Apple and what they plan to shut down as far as Xcode extendability. We should try this out and see if we can sort out issues.

mbuchetics commented 1 year ago

any news here?

kpgalligan commented 1 year ago

Not yet. It's on the radar for sure.

TadeasKriz commented 11 months ago

I've been looking into it and so far it seems to be a bug in Xcode itself. It happens with other 3rd party plugins as well. I also tried to extract Apple's plugin out of the Xcode.app bundle and it's crashing too.

I've filed a radar/feedback to Apple about this issue. Please go ahead and dupe it: https://openradar.appspot.com/radar?id=5500625966071808

Thanks!

MatyasKriz commented 11 months ago

A bit unrelated, but if you're forced to use Xcode 15 for iOS 17 device support, there's a workaround for adding iOS 17 device support into Xcode 14 while keeping plugin functionality – https://developer.apple.com/forums/thread/730947?answerId=758061022#758061022

Just install and setup Xcode 15 and then run this in the terminal:

defaults write com.apple.dt.Xcode DVTEnableCoreDevice enabled

I've just tested it and AFAICT it works just the same. 😁

TadeasKriz commented 10 months ago

We've released a new version of Xcode Kotlin. It's available through Homebrew and contains an automated workaround for this issue, check it out.