iOS SDK Building for iOS Simulator, but the linked and embedded framework 'MobileRTC.framework' was built for iOS

Description
I am unable to build my app after adding the sdk to the project. I am getting the following error. Building for iOS Simulator, but the linked and embedded framework ‘MobileRTC.framework’ was built for iOS.

If I remove the sdk from my project, the builds and runs properly. I have aslo tried this on a freshly created project. I face the same issue.

Which version?

  • Xcode Version 11.4 (11E146)
  • SDK v4.6.15805.0403

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Go to Open xcode project
  2. In project setting, navigate to the General section:
  3. Under Frameworks, library and embed content, add MobileRTC.framework
  4. Navigate to Build Phases > Copy Bundle Resources , and add MobileRTCResources.bundle
  5. Build app.
  6. See error

Screenshots
Screenshot 2020-04-08 at 18.38.00

Hi lupyana,

Thanks for using Zoom SDK. Our iOS SDK has 2 versions, the regular version is for device only. You may find the version that supports both device and simulator for the version you are using here: https://github.com/zoom/zoom-sdk-ios/releases/tag/v4.6.15805.0403; Please download the all version if you would like to use the simulator.

We offer 2 separate versions because the version that supports simulator is larger and the App Store does not like libraries that include the simulator support. Please use the device only version when you are submitting to the App Store.

Hope this helps. Thanks!

Link:
https://github.com/zoom/zoom-sdk-ios/releases/tag/v4.6.15805.0403

does not work. Where can we find the version that supports both simulator and device?

Thank you

never mind, I think I found it:

https://github.com/zoom/zoom-sdk-ios/releases/download/v4.6.21666.0428/ios-mobilertc-all-4.6.21666.0428-n.zip

Hi ddev,

Thanks for using Zoom SDK and glad to hear that the problem has resolved. Yes, our iOS SDK has 2 versions: one for device only and one for device+simulator; If you would like to download the one that supports the simulator, you may find the “all” version in the Github release page.

Hope this helps. Thanks!