Hey everyone, I’d like to ask whether it’s possibl...
# ios
p
Hey everyone, I’d like to ask whether it’s possible in KMP to set up a project with multiple iOS apps using the same KMP framework. For example: iOSApp — base app iOSSuperApp — another app iOSVerySuperApp — another app In this case, all three apps would use the same shared KMP framework and I would like to select simulators and schemes from Android Studio.Intelij Is this possible, or is using an Xcode workspace the only solution?
m
It should be done quite easily, as ios apps do only invoke framework generation, and then consume it. If you're following KMP/CMP app convention, you should propably configure them alongside your shared app module:
Copy code
:app
  :app:shared
  :app:iosApp
  :app:iosSuperApp
Or if you need changes in shared module per app:
Copy code
:app
  :app:shared
  :app:iosApp
:superApp
  :superApp:shared
  :superApp:iosSuperApp
🤩 1
m
i am not sure my example fit your case but you can try out
p
Thanks guys! This is what I was looking for! And it's good to know that there are limitation for Android Studio and Intelij to recognize only one iOS project at the time but modifying XML file is not that bad solution.
🙌 1
👍 1