Hi, I have a problem creating a archive of my iOS ...
# multiplatform
b
Hi, I have a problem creating a archive of my iOS projet with a KMM framework in it. The error message a receive is “Invalid Bundle. The bundle XXXXX.framework does not support the minimum OS Version specified in the Info.plist.” The MinimumOSVersion is 9.0 in the plist and my project support iOS14 and up. If i manually remove the MinimumOSVersion then I can archive it but if I change it to something else like 14.0 it’s still does not archive. Is there a way with embedAndSignAppleFrameworkForXcode to remove this MinimumOSVersion?
r
Can you try with 10.0 ?
l
I have a project that needs 9.0 as well. I added this to my build.gradle.kts
Copy code
iosTargets.forEach {
        it.binaries {
            framework {
                freeCompilerArgs += listOf("-Xoverride-konan-properties=osVersionMin=9.4")
            }
        }
    }
b
@ribesg whatever value I put in it I still get the same error when pushing my archive to the store
@Landry Norris My problem is not to change the value, it is to remove it completely. All my non kmm framework in my workspace dont specify a MinimumOSVersion in there plist and I wanted to do the same for my KMM Library
l
It looks like osVersionMin is defined in the konan.properties (in /opt/kotlin-native/kotlin-native-macos-aarch64-1.6.10/konan on my mac), so I don’t think it can be removed, just overridden. You may be able to set it to “”, but I don’t know for sure what that does.
b
@Landry Norris No putting “” in the konan.properties files didn’t work. The script crash