when i running ./gradlew build got this error: `&g...
# compose-ios
h
when i running ./gradlew build got this error:
> Task :composeApp:linkReleaseFrameworkIosArm64 FAILED
w: Cannot 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. e: Compilation failed: Java heap space * Source files: * Compiler version: 2.0.20 * Output kind: FRAMEWORK and here also:
> Task :composeApp:xcodeVersion
w: Kotlin <-> Xcode compatibility issue: The selected Xcode version (16.2) is higher than the maximum known to the Kotlin Gradle Plugin. Stability in such configuration hasn't been tested, please report encountered issues to https://kotl.in/issue Maximum tested Xcode version: 15.3
f
add the following:
Copy code
listOf(
        iosArm64(),
        iosSimulatorArm64()
    ).forEach { iosTarget ->
        iosTarget.binaries.framework {
            baseName = "ComposeApp"
            isStatic = true
Copy code
binaryOption("bundleId", "<your bundleid/appid>") // add this
        }
    }
h
@F nice working charm and just add this in gradle properties:
Copy code
#Gradle
org.gradle.jvmargs=-Xmx4096M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx4096M"
and
Copy code
kotlin.apple.xcodeCompatibility.nowarn=true
then running ./gradlew build
d