touchlab / KaMPKit

KaMP Kit by Touchlab. A collection of code & tools designed to get your mobile team started quickly w/Kotlin Multiplatform
https://touchlab.co/
Apache License 2.0
2.2k stars 199 forks source link

Kotlin code not highlighted nor debuggable in XCode #191

Closed IgorGanapolsky closed 3 years ago

IgorGanapolsky commented 3 years ago

I followed the instructions to open KaMPKitiOS in XCode 12. However, the Kotlin code isn't highlighted, nor can I put breakpoints in it. See screenshot:

Screen Shot 2021-04-19 at 3 26 03 PM
kpgalligan commented 3 years ago

You installed the xcode plugin? https://github.com/touchlab/xcode-kotlin

IgorGanapolsky commented 3 years ago

Yes, see screenshot:

Screen Shot 2021-04-19 at 3 30 06 PM
WanZheng commented 3 years ago

@IgorGanapolsky What's the version of your Xcode? There is an update of xcode-kotlin at Apr 27. You could have a try with the new version.

IgorGanapolsky commented 3 years ago

@WanZheng I am on Xcode Version 12.5 beta 3. I tried running the updated script. Same issue: no Kotlin highlighting.

kpgalligan commented 3 years ago

This is more of an https://github.com/touchlab/xcode-kotlin bug than anything with KaMP Kit. However, this is due to the plugin not being installed correctly for whatever reason. It's possible Xcode 12.5 beta 3 has a different UUID than the release version, so I'd look at the docs https://github.com/touchlab/xcode-kotlin#xcode-updates

I would also suggest updating to prod 12.5. We don't officially support beta versions, although occasionally we'll have them in there. I think we were all reluctant to install 12.5 so I don't think anybody on our team had a beta Xcode version.

IgorGanapolsky commented 3 years ago

Works with stable Xcode 12.4. Thanks!