Can anyone help me figure out why my iOS demo proj...
# compose-ios
j
Can anyone help me figure out why my iOS demo project won’t compile? I’m using Cocoapods, and get this error:
Copy code
demo/iosApp/iosApp/iosApp.swift:22:9: error: cannot find 'Main_iosKt' in scope
        Main_iosKt.MainViewController()
        ^~~~~~~~~~

** BUILD FAILED **
And if I inspect the
ComposeApp
shared module in Xcode, there is nothing inside of it. Demo was created using Compose Multiplatform Wizard and converted to Cocoapods instead of framework
a
How did you compile it?
j
It’s just copied from the template. I did notice when comparing the
build/
directories of my broken one, and a working build. The broken one doesn’t have a
build/../Pods.build
left - broken right -working
a
Cocoapods plugin was removed
j
Yeah I added Cocoapods back in, and when that didn’t work. I took the Android Studio KMP template that uses Cocoapods, still doesn’t work 😞
Hrmm it seems to be an issue of moving the generated template from a root directory into a
demo/
subfolder
a
hmm, I think you are not supposed to do that