Im Getting build issue

Failed to build module ‘SendBirdCalls’; this SDK is not supported by the compiler (the SDK is built with ‘Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)’, while this compiler is ‘Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)’). Please select a toolchain which matches the SDK.

Hello Junaid,

Could you provide the device info and Calls SDK version info?
I will check with our engineering team about your issue.

Thanks,
Pratham

@Pratham_Shingvi thanks for your reply …
im using macbook pro 2020
Xcode 13.4.1
and Calls SDK latest version using cocoapods

@Surendra_Karibandi yess i did

What was the fix @Junaid_Umer , currently I’m facing a similar issue.

@Surendra_Karibandi let me know your Xcode and SDK version

Hi @Junaid_Umer thanks for the reply ,
Im using Xcode 14.0.1,
SDK version 1.9.6 for SendBirdCalls
MAC book - 2017

@Surendra_Karibandi this version will be compiled with xcode 13.3.1 :slight_smile:

This is kind of strange, because its working for my colleagues, on their Xcode 14 with SDK version 1.9.5, but for me both both 1.9.5 and 1.9.6 versions giving me the same error.

Failed to build module ‘SendBirdCalls’; this SDK is not supported by the compiler (the SDK is built with ‘Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)’, while this compiler is ‘Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)’). Please select a toolchain which matches the SDK.

yes u can try it on xcode 14 basically its swift lang error xcode building with version 5.7 will do your job , not higher not lower , its because send bird is providing us pre-complied Frameworks so the framework requires same swift version for compiling @Surendra_Karibandi

On Xcode 14 its giving me this error.

Thanks @Junaid_Umer for your time, on Xcode 14 its giving me the above error , I will try it on Xcode 13, and will let you know

1 Like

@Surendra_Karibandi sure brother good luck

I am getting the same issue on Xcode 14.0.1

error build: Failed to build module ‘SendbirdUIKit’; this SDK is not supported by the compiler (the SDK is built with ‘Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)’, while this compiler is ‘Apple Swift version 5.7 (swiftlang-5.7.0.127.4 clang-1400.0.29.50)’). Please select a toolchain which matches the SDK.

Hi @JCasier, Did you find any work around for this issue?

I had to roll back to v2.

  • Johan -

Hi @JCasier , could you elaborate solution, 'been stuck for a while now on this

I don’t really have a solution, rather a workaround.
You can use the main-v2 branch which is the old objective C based API that doesn’t have the swift version compatibility issue.

And I same issue.

how to solve this problem?

SendbirdChatSDK v4.8.0
macOS big sur 11.7.1
xcode 13.1
swift 5.5

Hi @feel . We have deprecated support for Xcode versions lower than 14.1. Please update your Xcode to a version higher than 14.1 and try again.