ios-sdk icon indicating copy to clipboard operation
ios-sdk copied to clipboard

Errors encountered while syncing the project with Gradle files for the KMP (Android/iOS)

Open SagarGang opened this issue 2 years ago • 2 comments

cocoapods {
    version = "1.10.1"
    summary = "Description for the Shared Module"
    homepage = "Link to the Shared Module homepage"
    ios.deploymentTarget = "15.0"
    podfile = project.file("../iosApp/Podfile")
    pod("PhraseSDK") {
        source = git("https://github.com/phrase/ios-sdk")
        extraOpts += listOf("-compiler-option", "-fmodules")
    }
}

Added to the shared build.gradle file, but I am encountering errors. I am using Xcode 16, Android Studio 2024.2.1, Gradle 8.9, and Kotlin 2.0.20.

Screenshot 2024-10-21 at 3 54 58 PM

But it works fine in Xcode 15.4.

Thank you in advance for your time on this.

SagarGang avatar Oct 21 '24 14:10 SagarGang

Hi @SagarGang, XCode 16 and Swift 6 are not supported yet by the SDK. We will add support for it soon but in the meantime you would have to use XCode 15

theSoenke avatar Oct 21 '24 14:10 theSoenke

@theSoenke thanks.

SagarGang avatar Oct 22 '24 04:10 SagarGang

Hi @SagarGang, Swift 6 has been added with version 5.0 of the SDK. Please also note that we currently do not officially support KMP. It might already work but it hasn't tested by us

theSoenke avatar Jul 15 '25 11:07 theSoenke