ethand91 / mediasoup-ios-client

Mediasoup 3 iOS Client
ISC License
131 stars 65 forks source link

upload Appstore connect Unsupported Architectures #127

Open ehsanzeinali opened 2 years ago

ehsanzeinali commented 2 years ago

when i trying upload my project to appstore connect i got this error :

Unsupported Architectures. The executable for PalPhone.app/Frameworks/ mediasoup_client_jos.framework/Frameworks/WebRTC.framework contains unsupported architectures '[×86_64, ¡386]. (ID: e069f8c-f0db-4811-8545-fcce206924e1)

Screen Shot 2022-08-13 at 6 00 02 PM

NarasimhaDo commented 2 years ago

Hello, Removing manually the WebRTC.framework inside mediasoup framework from pod fixes the issue (delete the folder called "Frameworks", not only the framework itself ;-))

mohamnexus commented 1 year ago

To Publish on AppStore follow this guidline:

1. Delete second WebRTC framework: Go to this root:

/Project/Pods/mediasoup_ios_client/build/mediasoup_client_ios.framework/Frameworks

image

2. Delete unnecessary architectures of MediaSoup Cd terminal to this root:

/Project/Pods/mediasoup_ios_client/build/mediasoup_client_ios.framework/Frameworks

image

To get info of Architectures: lipo mediasoup_client_ios -archs

image

To remove architecture (in this situation we delete x86_64): lipo -remove x86_64 mediasoup_client_ios -o mediasoup_client_ios

  1. Delete architectures from WebRTC Go to this root by terminal (WebRTC file):

/Project/Pods/mediasoup_ios_client/mediasoup-client-ios/dependencies/webrtc/src/out_ios_libs/WebRTC.framework/

To get info of Architectures: lipo WebRTC -archs

You have to Delete these architectures: (i386 , x86_64) lipo -remove x86_64 WebRTC -o WebRTC lipo -remove i386 WebRTC -o WebRTC

Now you can archive the project and send to Apple.