Adam Brown
06/03/2022, 4:29 AMribesg
06/03/2022, 8:29 AMios()
3) Add folder for sourceSet iosMain
There’s a little bit more to do if you’re on a M1 Mac but that’s really the gist of itMatti MK
06/03/2022, 8:45 AMribesg
06/03/2022, 8:49 AMiosSimulatorArm64()
ios()
is a shortcut for a bunch of stuff that iosSimulatorArm64()
does not do, so you have to do it yourself (it’s not much)
ios()
creates both iosArm64()
and iosX64()
targets, as well as sourceSets iosMain
, iosArm64Main
, iosX64Main
for source files and iosTest
, iosArm64Test
and iosX64Test
for tests, then links them together (iosArm64Main.dependsOn(iosMain)
, etc.).
iosSimulatorArm64()
does not do the linking to the “iOS-common” `iosMain`/`iosTest` sourceSets, so you have to do that manually.Matti MK
06/03/2022, 8:50 AMsourceSets
and targets
ribesg
06/03/2022, 8:53 AMLandry Norris
06/03/2022, 3:36 PMAdam Brown
06/03/2022, 9:54 PMios()
to the common module and resyncing does indeed break the other modules, then adding their source sets allows me to fill in that code. But the next step I think is that I need a seperate iOS module, much like how Desktop and Android have their own modules that actually include and run the common code. I have very little ios experience, was woundering if there were any good tutorials on dropping a new ios project in there and getting it to reference the common iOS moduleLandry Norris
06/03/2022, 10:36 PMAdam Brown
06/03/2022, 11:55 PMLandry Norris
06/04/2022, 12:11 AM