I've been wracking my brain for the last couple of...
# fleet
p
I've been wracking my brain for the last couple of days trying to run the iOS part of a KMP project. The iOS project has different schemas, and I can't figure out how to select a different Xcode scheme in the run.json (run configurations) in Fleet. Has anyone else run into this issue or have any insight on how to solve it? I can run the project successfully on all schemas from within Xcode, and the schemas appear in the run dialog in Fleet, but then I get errors like:
Copy code
iosApp/iosApp/ContentView.swift:3:8: error: no such module 'ComposeApp'
import ComposeApp
       ^
Would love to hear your thoughts!
f
Hi! Is this project something you would be able to share with us privately? How have you integrated the KMP framework into Xcode? Are you relying on schema scripts to build the framework?
p
Hello @florian.kistner Context: I am setting up different build environments like; dev, uat, prod etc. • In Android Studio I can chose the Xcode project scheme • In the fleet there is no option to chose scheme, • When I am editing the run configuration I didn't find any documentation of how to set scheme.
Copy code
{
  "configurations": [
    {
      "name": "iosApp",
      "type": "xcode-app",
      "workingDir": "$PROJECT_DIR$",
      "allowParallelRun": true,
      "buildTarget": {
        "project": "iosApp",
        "target": "iosApp"
      },
      "configuration": "Debug"
    }
  ]
}
It's easy to reproduce, setup a schema in XCode and then try to select it from Fleet, I have a public repository with this issue: https://github.com/pererikbergman/multiplatform-flavors Feel free to reach out to me in DM if needed.