https://kotlinlang.org logo
m

Michal Klimczak

02/11/2021, 3:10 PM
Is anyone using
xcframework
to distribute their shared module? Regular framework (e.g. the one from template project) can be created during the xcode build (via
Run Script
phase). When I do the same for xcframework, one of the first things that xcode does, is to validate if the xcframework is already there. It isn't obviously, because I'm trying to create it as part of the build process. But even though this
RunScript
is the earliest possible phase, I never get to run it if the xcframework file is not already there. In a broader context - what is currently the best method to work on the shared module? I would like to have three separate repos (android, ios, shared) but both android and ios developers should be able to work on their platform and the shared module at the same time (without the need to upload to remote repo every time anything changes in the shared module - that would be nightmare to work with). On the other hand, there needs to be some versioning, i.e. when the ios app is built on CI it should properly load the right shared module from the second repository. On android it can be achieved with maven (with mavenLocal) I guess, but I'm not sure of the best approach for iOS.