Search code examples
kotlin-multiplatforminfo.plist

Kotlin Multiplatform: Set version in Info.plist


I have a Kotlin Multiplatform project and build it for iOS with assembleXCFramwork

Everything works fine and the module is created. But currently I don't see any version in the Info.plist file. In build.gradle.kts I set a version like: version = "1.1.9"

Is it possible to somehow write this version automatically into the Plist.info file?


Solution

  • I just found it here:

    https://kotlinlang.org/docs/multiplatform-build-native-binaries.html#export-dependencies-to-binaries

    It works with this setting

    binaries {
        framework {
            binaryOption("bundleVersion", "1.1.9")
        }
    }