g0dkar/qrcode-kotlin

Issue when compiling for iosArm64

Closed this issue ยท 4 comments

Hello community!

Describe the bug
So I'm having an issue while trying to compile my KMM project with this library. The error is the following:

e: Could not find "org.jetbrains.kotlin.native.platform.Symbols" in [/Users/my-user/Documents/X/my-project, /Users/my-user/.konan/klib, /Users/my-user/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.10/klib/common, /Users/my-user/.konan/kotlin-native-prebuilt-macos-aarch64-1.9.10/klib/platform/ios_arm64]

To Reproduce
Easily reproducible by trying to use the linkDebugFrameworkIosArm64.

Expected behavior
To be able to generate the binaries for the Arm64 architecture.

Additional context
As you can tell by the error, I'm already using Kotlin 1.9.10 and I have a Mac with a M2 chip. Feel free to ask for additional info! ๐Ÿ˜ƒ

I'll try to reproduce it and I'll get back to you ^^

While I try this, is it feasible for your project to bump to Kotlin v1.9.20?

Thanks for your response!

While I try this, is it feasible for your project to bump to Kotlin v1.9.20?

Yap, it might be and I'm working on it. I realised that could be the issue and started bumping Kotlin and some of my dependencies that rely on that. Once I finish doing that, I'll give you some feedback as well!

Hey @g0dkar,

Bumped to Kotlin v1.9.20 and I was able to generate the binaries for the mentioned architecture. Anyways, thanks for the help and for the quick answer! ๐Ÿ‘

I had a similar issue while developing v4.0.x and the solution I found was to configure XCode to use its own compiler... weird, but it worked. I've done it like this:

image

I found it on a StackOverflow answer, if I can find it again I'll link it here ๐Ÿ˜…

Edit: No idea why and/or how this affects Kotlin but yeah :pain:

Edit 2: At least on my Mac, there's only one CLT option on that drop down, but I *had* to select it for everything to work O_o