Blaž Vantur
09/27/2023, 3:28 PMpodGenIOS
task is being run. I have added next pods to my project:
pod("AWSIoT")
pod("AWSMobileClient")
While gradle podGenIOS
task is being executed I get next error:
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?