# multiplatform

Blaž Vantur

09/27/2023, 3:28 PM
Hey 🙂 Did anyone worked with AWS Amplify and iOS target for KMM project? I have next error which happens while
task is being run. I have added next pods to my project:
Copy code
While gradle
task is being executed I get next error:
Copy code
Caused by: java.lang.IllegalStateException: Executing of 'pod install' failed with code 1 and message: 

Analyzing dependencies
Downloading dependencies
Installing AWSAuthCore (2.33.4)
Installing AWSCognitoIdentityProvider (2.33.4)
Installing AWSCognitoIdentityProviderASF (2.33.4)
Installing AWSCore (2.33.4)
Installing AWSIoT (2.33.4)
Installing AWSMobileClient (2.33.4)
[!] Unable to determine Swift version for the following pods:

- `AWSMobileClient` does not specify a Swift version and none of the targets (`ios`) integrating it have the `SWIFT_VERSION` attribute set. Please contact the author or set the `SWIFT_VERSION` attribute in at least one of the targets that integrate this pod.
I was searching around and I found out that podfile which is generated in that gradle task doesn’t have swift version defined as expected for AWSMobileClient pod. There is some workaround written here, which I had troubles to implement it inside of my project. So my question is has anyone had that kind of a problem and if anyone has manage to solve it for this or any other library?
I manage to solve this with updating Kotlin version to 1.9.0 and adding this part to build.gradle.kts file of shared module: tasks.withType<org.jetbrains.kotlin.gradle.targets.native.tasks.PodGenTask>().configureEach { doLast { podfile.get().appendText(“”" _*ENV[‘SWIFT_VERSION’] = ‘5.9’ “”".trimIndent()) } }*_