Facing issue integrating the Azure communication calling library to my iOS project

Lovekesh Bhagat 0 Reputation points Microsoft Employee
2023-01-20T04:31:42.15+00:00

I am trying to integrate the AzureCommunicationCalling to my iOS project but facing below issue.

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

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
675 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 22,086 Reputation points Microsoft Employee
    2023-01-25T19:20:57.9033333+00:00

    @Lovekesh Bhagat ,

    Please try to install both compilers (5.6 and 5.7) on the build machine and then check.

    Users with a similar issue were able to fix the issue by following the steps outlined in this SO thread. Quoting here for your convenience.

    “You need to set the Build Settings > Build Options > Build Libraries for Distribution option to Yes in your framework's build settings, otherwise the swift compiler doesn't generate the neccessary .swiftinterface files which are the key to future compilers being able to load your old library.

    This ends up in your project.pbxproj file as:

    `BUILD_LIBRARY_FOR_DISTRIBUTION = YES;`
    

    Please try the above steps and let us know how it goes.

    0 comments No comments