Environment:
- Kotlin: 2.0.0
- Gradle: 8.8
- AGP: 8.3.0
- Xcode: 15.4
- CocoaPods version: 1.15.2
- macOS version: 14.7 (build 23H124)
Issue Description:
I am working on a Kotlin Multiplatform Mobile (KMM) project that integrates with iOS via CocoaPods. While attempting to build an iOS framework, I noticed that the iOS Deployment Target is not applied correctly.
Despite explicitly setting the deployment target to iOS 15.0 in multiple places (e.g Podfile, shared.podspec, build.gradle.kts, gradle.properties), the built framework still reports iOS 13.0 when inspected with xcrun vtool.
Questions:
- Is this a known issue with Kotlin 2.0.0’s iOS target handling?
- Is there an alternative way to force LC_BUILD_VERSION minos 15.0?
- Does Kotlin 2.0.0 override deployment targets in a way that conflicts with CocoaPods settings?
- Are there additional flags we should set to enforce this?
Any insights or recommendations would be greatly appreciated.
Thank you.