Hello. My company is wanting to migrate our iOS ap...
# multiplatform
r
Hello. My company is wanting to migrate our iOS application to Kotlin Multiplatform so we can have reusability as we build out our Android app. I'm trying to understand the basics of integrating with ios. Based on the example repo: https://github.com/touchlab/KaMPKit, can someone please explain how the ios codebase is detecting the shared framework? • I see there is a build phase that runs the gradle command
./gradlew embedAndSignAppleFrameworkForXcode
• I don't see any linked frameworks • I don't see any package dependencies • I don't see any framework search paths • I don't see any cocoapod integration (Even though docs/IOS_PROJ_INTEGRATION.md is based on cocoapod integration) When I replace the ios folder with my existing ios codebase and add the build phase to include the gradle command, I cannot import/use the shared module. Could someone nudge me in the right direction?
For future reference for anyone with the same issue. I had to provide a baseName in the shared modules build.gradle.kts within the ios target framework. For some reason, the default name of "shared" simply didn't work but other names work as expected. No idea why...