[iOS][Swift]Run time crash while integrating AzureCommunicationCalling

Open
#370 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
azure, ios, swift
Domain
mobile-dev

Research direction

Start with the existing project's Podfile and reproduce the launch failure using AzureCommunicationCalling 1.0.0-beta.12 on iOS 14.5. Compare its dependency integration with the standalone project, including the listed AzureCommunicationCalling and AzureCommunicationCommon versions. Done means the existing app installs, launches, and no longer reports the missing AzureCommunication.framework.

Written by the indexing model from the issue text.

Description

Bug Needs: triage :mag: Teams interop

Describe the bug
Run time crash while trying to integrate AzureCommunicationCalling SDK via CocoaPods

To Reproduce
Steps to reproduce the behavior:

  1. Go to podfile in your project
  2. Add pod 'AzureCommunicationCalling', '1.0.0-beta.12'
  3. pod install
  4. compile and run
  5. App crashes at launch with error: "dyld: Library not loaded: @rpath/AzureCommunication.framework/AzureCommunication
    Referenced from: /Users/arqamowais/Library/Developer/CoreSimulator/Devices/D23B6797-EA6F-4F70-9F6D-547A81D084B0/data/Containers/Bundle/Application/0D5EF810-6CFC-4D6E-867C-D755AF0C1004/VeriBank.app/Frameworks/AzureCommunicationCalling.framework/AzureCommunicationCalling
    Reason: image not found
    dyld: launch, loading dependent libraries
    DYLD_SHARED_CACHE_DIR=/Users/arqamowais/Library/Developer/CoreSimulator/Caches/dyld/20G95/com.apple.CoreSimulator.SimRuntime.iOS-14-5.18E182
    DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
    DYLD_LIBRARY_PATH=/Users/arqamowais/Library/Developer/Xcode/DerivedData/VBMBProduct-gwabandzvcctzldykxlqwqtoflev/Build/Products/Development-iphonesimulator:/Users/arqamowais/Library/Developer/Xcode/DerivedData/VBMBProduct-gwabandzvcctzldykxlqwqtoflev/Build/Products/Development-watchsimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
    DYLD_PRINT_STATISTICS=1
    DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.pla"

Expected behavior
App shouldn't crash at launch

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: iOS 14.5

Smartphone (please complete the following information):

  • Device: iPhone7, iPhone Simulator 12 ProMax
  • OS: iOS 14.5

Additional context
Adding this pod in standalone project works fine. But adding it in existing project breaks it. I've tried various combinations and solutions suggested in othere similar issues. Nothing worked for me yet. I've tried the following pods in various combinations:

pod 'AzureCommunicationCalling', '1.0.0-beta.9'
pod 'AzureCommunicationCalling', '1.0.0-beta.12'
pod 'AzureCommunicationCalling', '2.0.0-beta.1'

pod 'AzureCommunicationCommon', '1.0.0'
pod 'AzureCommunicationCommon', '~> 1.0.0'

Dominant language
No language data
Stars
340
Forks
113
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/Communication

All issues in Azure/Communication

Similar issues

More Mobile Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.