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

Steven

03/27/2019, 5:32 PM
Is anyone able to create both arm64 and x64 for iOS using cocoapods? I don't know what i'm doing wrong but i can't seem to provide a framework to cocoapods with both architectures...
s

Sam

03/27/2019, 5:38 PM
You need to use the lipo tool to combine them. The catch is that when archiving the app for upload the x64 portion of the framework needs to be removed with lipo again. Otherwise the app will be rejected.
s

Steven

03/27/2019, 5:41 PM
thank you for the insight! Do you know where i can find a tutorial for using the lipo tool in a kotlin mpp environment?
j

Jonas Bark

03/27/2019, 5:42 PM
s

Steven

03/27/2019, 5:52 PM
thank you very much! 🙂
I can't seem to access classes in my kotlin lib when using this gradle plugin, but it does generate the right architectures though 🤔
l

Liang Song

04/03/2019, 10:49 PM
I have the same issue for accessing classes, check this issue https://github.com/AlecStrong/kotlin-native-cocoapods/issues/14
11 Views