AppStore Distribution Failed with Errors

Description
We tried to distribute App on AppStore and got the following errors.

Which version?
v5.0.24433.0616

To Reproduce(If applicable)
Added Frameworks downloaded from here into existing App:
https://github.com/zoom/zoom-sdk-ios/archive/master.zip”,
Frameworks added to project:
MobileRTC.framework
MobileRTCScreenShare.framework
MobileRTCResources.bundle

Smartphone (please complete the following information):
-Xcode Version 11.5

  • OS: iOS 11

Additional context
This is the list of errors show when trying to distribute to Appstore:

App Store Connect Operation Error
Invalid Mach-O Format. The Mach-O in bundle “Myapp.app/Frameworks/MobileRTCScreenShare.framework” isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains arm64(machine code), while the nested bundle Mach-O contains armv7(machine code) and arm64(machine code). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting.

App Store Connect Operation Error
Invalid Bundle Structure - The binary file ‘Myapp.app/Frameworks/MobileRTCScreenShare.framework/MobileRTCScreenShare’ is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure.

App Store Connect Operation Error
Invalid Info.plist value. The value for the key ‘MinimumOSVersion’ in bundle Myapp.app/Frameworks/MobileRTCScreenShare.framework is invalid. The minimum value is 8.0

App Store Connect Operation Error
The binary is invalid. The executable ‘Myapp.app/Frameworks/MobileRTCScreenShare.framework/MobileRTCScreenShare’ has type ‘OBJECT’ that is not valid. Only ‘EXECUTE’ is permitted.

App Store Connect Operation Error
The binary is invalid. The encryption info in the LC_ENCRYPTION_INFO load command is either missing or invalid, or the binary is already encrypted. This binary does not seem to have been built with Apple’s linker.

App Store Connect Operation Error
Missing load commands. The executable at ‘Myapp.app/Frameworks/MobileRTCScreenShare.framework’ does not have the necessary load commands. Try rebuilding the app with the latest Xcode version. If you are using third party development tools, contact the provider.

Kindly help with this, It is urgent I should say.

Thank you.

Please, any help with this? It is kind of urgent.

Thanks.

Hi @Tobiak,

Thanks for the post. Regarding the issue you are facing, please try the following:

  1. In the build setting of your broadcast extension, please set Bitcode to NO. Or you could use lipo to decouple the MobileRTCScreenShare.framework into an arm64 only framework. The framework includes both arm64 and armv7.
  2. Set the minimumOSVersion in the MobileRTCScreenShare.framework/Info.plist to be 8.0. We will enhance this part in the next release.

Hope this helps. Thanks!