Open jpamarohorta opened 2 years ago
Hi @jpamarohorta thanks for the report! @raosanat can you comment on here when you expect a compatible version of Calling to be released?
Hi @jpamarohorta, Thanks for the report, how are you installing the SDK, and what version of SDK are you trying to install?
i had the same error on Mac Mini M1, using Xcode in rosetta mode fixed the issue
Hello @lucianopa-msft , I'm installing via cocoapods and it was version 2.2.1
@jpamarohorta how does your Podfile look like ? Can you send it here ?
@jpamarohorta
You are probably in a M1 Mac and trying to target a simulator right?
The issue here is we indeed need to add support for arm simulator as right now we only ship ios-x86_64-simulator
and iOS-arm64
in our xcframework. For now to unblock you, you can either build targeting a physical device or make Xcode run on rosetta(as @andycancado mentioned), which forces simulators to run as x86 simulators which ship a binary for.
But we will work on shipping support for arm simulators in a future release.
i couldn't use version 2.2.2 (and 2.3.0-beta.4). Even with Rosetta mode enabled or just with a physical device. Will the frameworks be build with BUILD_LIBRARY_FOR_DISTRIBUTION set to YES? This will make the framework less dependent on specific swift version
i couldn't use version 2.2.2 (and 2.3.0-beta.4). Even with Rosetta mode enabled or just with a physical device.
What are the errors you were seeing?
Will the frameworks be build with BUILD_LIBRARY_FOR_DISTRIBUTION set to YES? This will make the framework less dependent on specific swift version
Yes
sorry for the late response, but the error is the same as above
error: compiling for iOS 12.0, but module 'AzureCommunicationCommon' has a minimum deployment target of iOS 13.0: /Users/rbuiten/Library/Developer/Xcode/DerivedData/project-cuvhuaakbyehnodmsutkqpqtyckv/Build/Products/NL_ACC-iphoneos/AzureCommunicationCommon/AzureCommunicationCommon.framework/Modules/AzureCommunicationCommon.swiftmodule/arm64-apple-ios.swiftmodule
../CommunicationIdentifierExtension.swift:9:8: error: failed to build module 'AzureCommunicationCalling'; 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.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK.
Hi @rbuiten, the main error seems to be related to target error: compiling for iOS 12.0, but module 'AzureCommunicationCommon' has a minimum deployment target of iOS 13.0
can you check you minimum development targets?
hmm ok. I did update the minimum deployment target to 13. So, it's strange. But when I update the pod and set the deployment target to 12 it will work.
Hello, I'm currently having the same issue but now with Xcode 14.3 and Swift 5.8. I get the following error:
Failed to build module 'AzureCommunicationCalling'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)'). Please select a toolchain which matches the SDK.
Is there a solution for this type of issues or do we need to wait for a new release compatible with the latest swift? I'm using the latest pod 2.4.0
.
Hello, I'm currently having the same issue but now with Xcode 14.3 and Swift 5.8. I get the following error:
Failed to build module 'AzureCommunicationCalling'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.8 (swiftlang-5.8.0.124.2 clang-1403.0.22.11.100)'). Please select a toolchain which matches the SDK.
Is there a solution for this type of issues or do we need to wait for a new release compatible with the latest swift? I'm using the latest pod
2.4.0
.
Did 2.3.0 version worked? We ship with BUILD_LIBRARY_FOR_DISTRIBUTION
so versions of the compiler shouldn't matter in that case. Are you trying to build targeting a simulator or a device? This message can also happen because we don't support M1 simulators yet.
@lucianopa-msft I'm facing the issue on my M1 computer and using a physical phone device:
Failed to build module 'AzureCommunicationCalling'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.7.2 (swiftlang-5.7.2.135.5 clang-1400.0.29.51)', while this compiler is 'Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)'). Please select a toolchain which matches the SDK.
Hi @ashfaqadib, Which version of Calling SDK are you using? As well as Xcode and Swift versions you are using Can you also share installation details, such as how are you installing the binary?
Also if you are trying to build targeting simulator or device arch?
Hi @lucianopa-msft,
I'm currently using AzureCommunicationCalling (1.0.1) following the Voice Calling Quickstart guide. I'm on XCode Version 14.3.1 and Swift version 5.8.1. I'm trying to build on my physical device with iOS 12. I haven't still figured out a fix for the issue.
Can you try with the latest version? 2.8.0? We still support iOS 12 in our latest releases so it would not be an issue
If that doesn't work, can you submit a sample minimized project zip that repros this? This message may happen for a variety of reasons which some of them are not actually compiler version mismatch.
I am facing similar error when i try to integrate AzureCommunicationCalling in a react native project.
Failed to build module 'AzureCommunicationCalling'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)', while this compiler is 'Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)'). Please select a toolchain which matches the SDK.
I tried to do the following:
1. Downgrade my Xcode version to 15.1 (I get a different error Failed to build module 'AzureCommunicationCalling' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug) 2. Set Build Libraries For Distribution to YES in Build Settings (In this case the error goes away but i get a different error saying Using bridging headers with module interfaces is unsupported) 3. Created a new react native project and tried to integrate the sdk. (Same error)
macOS 14.6.1 Xcode 16.1 AzureCommunicationCalling sdk 2.13.1 React native 0.74.4
I am facing similar error when i try to integrate AzureCommunicationCalling in a react native project.
Failed to build module 'AzureCommunicationCalling'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)', while this compiler is 'Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)'). Please select a toolchain which matches the SDK.
I tried to do the following:
1. Downgrade my Xcode version to 15.1 (I get a different error Failed to build module 'AzureCommunicationCalling' for importation due to the errors above; the textual interface may be broken by project issues or a compiler bug) 2. Set Build Libraries For Distribution to YES in Build Settings (In this case the error goes away but i get a different error saying Using bridging headers with module interfaces is unsupported) 3. Created a new react native project and tried to integrate the sdk. (Same error)
macOS 14.6.1 Xcode 16.1 AzureCommunicationCalling sdk 2.13.1 React native 0.74.4
Hi @fahimjubayer-dsi
Can you please check which are the resolved minimum target deployment for the AzureCommunicationCalling? Make sure it is iOS 12.0 e.g.
@lucianopa-msft Thank you, i followed your instruction and the error message went away. I also had to update minimum deployment target to 16.0 btw.
Is your feature request related to a problem? Please describe. We are unable to use the SDK with the most recent Xcode (14.1) and Swift 5.7.
Describe the solution you'd like A version of the SDK that would be compatible with Swift 5.7.
Describe alternatives you've considered We tried to change the toolchain used in this project by Xcode to Swift 5.6 however it caused issues with other dependencies on our app.
Additional context The error we are receiving when building with Swift 5.7 is:
Failed to build module 'AzureCommunicationCalling'; 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.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)'). Please select a toolchain which matches the SDK.
Information Checklist