-
Notifications
You must be signed in to change notification settings - Fork 564
iOS universal binary generation #2574
Comments
This is frequently asked question, and generally |
Thanks for your answer. Yeah, it's not that hard to use One might argue that Xcode users don't usually have to deal with |
To elaborate, Xcode users have to use |
@olonho |
I've found the following example to use Edit: Since the referenced repository got removed, here's a sample task of combining two frameworks with Gradle. For this configuration we need two iOS targets named as iosArm64 and iosX64. (The XCODE_CONFIGURATION property comes from the multiplatform sample app configuration.)
|
@endanke , I am attempting to get this to work, are you saying that we need two preset targets with duplicate code? Or are you building both targets from the same src tree? Would you be willing to share a bit more of your gradle script? |
@jonl-percsolutions-com |
For anyone else whom comes across this problem, I found the plugin below that will build the universal library. Even though it was built with cocoapods in mind, it doesn't really require the use of cocoapods to get the universal library to build. https://github.com/AlecStrong/kotlin-native-cocoapods |
A similar task will be added to Kotlin 1.3.30. A simple sample showing how to use it is here. |
Reported: https://youtrack.jetbrains.com/issue/KT-31008. |
Thank you! The PR is merged and included in the bugfix branch. |
I've published a sample project with my configuration. Some of the things might be already deprecated, but parts of it might be still useful to someone. |
Mark |
It's not an issue but rather a question.
Are there any plans to implement this as a part of the compiler or is it going to be on users' shoulders?
The text was updated successfully, but these errors were encountered: