https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
f

Francis Mariano

01/27/2021, 8:21 PM
Hi guys again 🙂 I getting the following message after build and running based-arm32 shared code:
Copy code
dyld: Library not loaded: /usr/lib/libate.dylib
 Referenced from: /private/var/containers/Bundle/Application/ED5BC0AF-C75B-4DF3-92F5-C7B62B0F6DF5/myapp.app/Frameworks/shared.framework/shared
 Reason: image not found
My packForXCode task is default, but I replace target name to Arm32:
Copy code
val targetName = "ios" + if (sdkName.startsWith("iphoneos")) "Arm32" else "X64"
I search about this problem and found the following issue on kotlin-native github https://github.com/JetBrains/kotlin-native/issues/2555 but I don't understand very well. Again, I am new in iOS perspective and I am studying and learning very much with the community. Can any help? Thank you Edit: On simulator the build and running is ok
t

Thomas Myrden

01/27/2021, 8:26 PM
What device are you building on?
f

Francis Mariano

01/27/2021, 8:27 PM
ipad 1srt generation (i kown, it is old)
t

Thomas Myrden

01/27/2021, 8:28 PM
Hmmmm, the iPad gen 1 stopped at iOS 5.1.1
I wasn't even dev'ing back in the iOS 5 days so I won't be much help here. I can't even begin to imagine the list of potential issues you could be having if you're attempting to target 5.1.1
f

Francis Mariano

01/27/2021, 8:31 PM
sorry, Ipad Mini. It is at iOS 9.3
t

Thomas Myrden

01/27/2021, 8:31 PM
Ah! Ok way more reasonable
a

Artyom Degtyarev [JB]

01/28/2021, 7:48 AM
Just a wild guess, but I’m looking at those two repos: ios9Headers, ios10Headers, and there is no
libate.dylib
presented in the ninth one. This is not the best source, but it made me think that maybe Kotlin/Native does not support some iOS version at the moment. I’ve found this answer, telling that Apple added libate only with iOS 10. Not sure why Kotlin/Native framework depends on it, probably worth an issue at kotl.in/issue Also there is a thread with some devices list, not sure how relevant is it: https://stackoverflow.com/questions/41916922/which-ios-devices-dont-support-astc-texture-compression
f

Francis Mariano

01/28/2021, 10:49 AM
Thank you @Artyom Degtyarev [JB] I will to open a issue in youtrack. In past I remember to test kotlin native with iOS 9.3 version and it worked like a charm, but very things must have changed from there.
3 Views