g0dkar / qrcode-kotlin

QRCode Generator implemented in pure Kotlin
https://qrcodekotlin.com/
MIT License
160 stars 13 forks source link

Issue when compiling for iosArm64 #91

Closed ruicanas closed 7 months ago

ruicanas commented 7 months ago

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! 😃

g0dkar commented 7 months ago

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?

ruicanas commented 7 months ago

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!

ruicanas commented 7 months ago

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! 👍

g0dkar commented 7 months ago

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