Joel Denke
02/26/2024, 7:03 AMCannot infer a bundle ID from packages of source files and exported dependencies, use the bundle name instead: ComposeApp. Please specify the bundle ID explicitly using the -Xbinary=bundleId=<id> compiler flag.
I get this from task > Task :composeApp:linkReleaseFrameworkIosArm64 FAILED
in any sample project from kmp.jetbrains.com
What bundle id should be inserted where? In general I am very very confused by iOS compile errors, almost zero information everytime something fails. Maybe there is some debug flags I can add?curioustechizen
02/26/2024, 7:05 AMJoel Denke
02/26/2024, 7:06 AMDima Avdeev
02/26/2024, 9:15 AMJoel Denke
02/26/2024, 9:18 AMiosApp/Configuration/Config.xcconfig
file but doesnt look like CMP respect it in newer 1.6.0-rc01+ versions, or fails parsing it, not sure.Ken
08/25/2025, 8:46 AMbinaryOption
function or if you're having trouble with the binaryOption(...)
function:
binaries {
compilerOptions.freeCompilerArgs.add("-Xbinary=bundleId=<your-bundle-id>")
}
Pay attention that this id should not be identical to your iOS application's bundle id, e.g. in my case the iOS application's bundle id is com.kenkoro.practice.ios
, and the bundle id I provided as a compiler option is com.kenkoro.practice
. Otherwise, you'll get the error on the image.
For a project reference, see this.
Hope it helps!