0
votes

When try to upload

It says that App Store Connect Operation Error Unsupported Architectures. The executable for obdInterface.app/Frameworks/WebRTC.framework contains unsupported architectures '[i386, x86_64]'.

enter image description here

2

2 Answers

1
votes

Basically you need to remove the unused architectures. See my comment: Gigya Swift framework missing ios-framework-build.sh script

Take the script and add in Build Phases -> + -> New Run Script Phase in your project and paste the script in the Run Script.

1
votes

Ant Media's iOS WebRTC framework is a fat binary which means it support both simulator and device architecture. It lets you run the framework both in simulator(i386, x64) and real devices(arm, arm64) seamlessly. On the other hand, App Store does not accept simulator architecture. So you should remove the i386 and X64 support.

Go to your project directory and run the following commands:

lipo -remove i386 AntMediaSDK.framework/AntMediaSDK -o AntMediaSDK.framework/AntMediaSDK 
lipo -remove x86_64 AntMediaSDK.framework/AntMediaSDK -o AntMediaSDK.framework/AntMediaSDK 
lipo -remove i386 WebRTC.framework/WebRTC -o WebRTC.framework/WebRTC 
lipo -remove x86_64 WebRTC.framework/WebRTC -o WebRTC.framework/WebRTC 
​

After that you can check which frameworks are supported in the frameworks as follows:

$ lipo -info WebRTC.framework/WebRTC
$ lipo -info AntMediaSDK.framework/AntMediaSDK

You should see an output like below:

Architectures in the fat file: WebRTC.framework/WebRTC are: armv7 arm64