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

Xcode 14

Open xbindai opened this issue 2 years ago • 4 comments

image

xbindai avatar Sep 15 '22 08:09 xbindai

Up!

donadev avatar Sep 15 '22 16:09 donadev

Hello, Could you please add detailed steps of reproduction for this issue and the use case you're trying to achieve. Also, please add information about the SDK version, Xcode version etc. so that it can help us in determining root cause.

thisisabhash avatar Sep 16 '22 18:09 thisisabhash

This issue appears to be related to https://github.com/aws-amplify/aws-sdk-ios/issues/4283. Could you please try the option to link the frameworks statically as outlined in this comment. Let us know if you still have problems after trying this.

atierian avatar Sep 19 '22 21:09 atierian

This issue appears to be related to #4283. Could you please try the option to link the frameworks statically as outlined in this comment. Let us know if you still have problems after trying this.

Hi, I am having a similar issue after installing Xcode 14. error build: Undefined symbol: _OBJC_CLASS_$_AWSCognitoIdentityProviderASF

but I cant find the podspec file as suggested in https://github.com/aws-amplify/aws-sdk-ios/issues/4283#issuecomment-1249773668 Should it be within the AWSCognitoIdentityProviderASF pod?

kvnh avatar Sep 20 '22 10:09 kvnh

@kvnh The usage of s.static_framework = true in that linked comment applies to a cocoapod that has a dependency on one of the pods from the SDK. Can you try use_frameworks! :linkage => :static in your podfile to see if that resolves your issue? [Podfile Syntax Reference]

atierian avatar Oct 21 '22 17:10 atierian

Thanks @atierian In this case I managed to resolve my issue by updating AWSMobileClient from 2.12.0 to 2.17.0 and then updating the min deployment target to 13.

kvnh avatar Oct 24 '22 16:10 kvnh

Great, thanks for letting us know.

atierian avatar Oct 24 '22 16:10 atierian

@atierian Hi, do you think there is any way to do it without use_frameworks? Im trying to use cocoapods-user-defined-build-types plugin but im not really sure what params to set. Im tried to set static_framework on pod which is using AWSCore but then compiler returned error that I cant do it bc of AWSCore.. I also set s.static_framework = true but it didnt really help.

igorkirnbb avatar Jan 13 '23 04:01 igorkirnbb