azure-sdk-for-ios icon indicating copy to clipboard operation
azure-sdk-for-ios copied to clipboard

Instructions to install AzureCommunicationCalling without Cocoapods

Open dorjeozer opened this issue 9 months ago • 7 comments

In the Quickstart guide is a section "Using XCFramework directly". It's quite easy to create a XCFramework out of AzureCommunicationCommon but it has turned out to be a very difficult task to make these two frameworks linked together.

Describe the solution you'd like It would be great if there was an example project available to understand how this solution can be implemented.

dorjeozer avatar Feb 10 '25 12:02 dorjeozer

Hi @dorjeozer,

Can you give more details on what kind of issues are you facing? Errors you are seeing and so on? Maybe the steps your are using for generating the Common XCframework?

lucianopa-msft avatar Feb 10 '25 13:02 lucianopa-msft

I think the following line of code (from the example project) and the related error will describe the problem I'm having quite well:

phoneNumberOptions.alternateCallerId = PhoneNumberIdentifier(phoneNumber: "+12133947338")

error: Cannot assign value of type 'AzureCommunicationCommon.PhoneNumberIdentifier' to type 'AzureCommunicationCalling.PhoneNumberIdentifier'

I have generated Common XCFramework using this tool.

dorjeozer avatar Feb 17 '25 11:02 dorjeozer

I think the following line of code (from the example project) and the related error will describe the problem I'm having quite well:

phoneNumberOptions.alternateCallerId = PhoneNumberIdentifier(phoneNumber: "+12133947338")

error: Cannot assign value of type 'AzureCommunicationCommon.PhoneNumberIdentifier' to type 'AzureCommunicationCalling.PhoneNumberIdentifier'

I have generated Common XCFramework using this tool.

Thank you for following up with this, can you please share a sample project that repros this? Something small and self contained with less code as possible and with the xcframeworks embedded in it.

lucianopa-msft avatar Feb 17 '25 15:02 lucianopa-msft

Here's an example project where the code is from your tutorial and contains both of the frameworks embedded in: ACSLibraryUI.zip

dorjeozer avatar Feb 28 '25 11:02 dorjeozer

Hi, Thank you for the sample, I could not reproduce the issue (not able to use the exact frameworks you had because they weren't inside the zip). So I use my own AzureCommunicationCommon.xcframework and it is all working.

Can you share details on how you are building AzureCommunicationCommon xcframework? Also, make sure you are building version 1.2.0.

Can you try using this AzureCommunicationCommon.xcframework.zip

lucianopa-msft avatar Feb 28 '25 19:02 lucianopa-msft

The code works with your file.

Would it be possible to get the instructions how it's supposed to be built? Even better would be to get the xcframework available to download for each release.

dorjeozer avatar Mar 03 '25 14:03 dorjeozer

Re-assigning this to @mjafferi-msft who owns common SDK

gaobob-msft avatar Mar 24 '25 16:03 gaobob-msft