Communication icon indicating copy to clipboard operation
Communication copied to clipboard

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

Open aahmed92021 opened this issue 3 years ago • 0 comments

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'

aahmed92021 avatar Sep 13 '21 08:09 aahmed92021