Azure / Communication

Azure Communication Services - SDKs and Release Notes
MIT License
320 stars 99 forks source link

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

Open aahmed92021 opened 3 years ago

aahmed92021 commented 3 years ago

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):

Smartphone (please complete the following information):

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'