extra/renderer-and-libwebrtc-tests.js file).The script to strip down Unsupported Architectures is not doing its job anymore, it's running and give this error message after a fresh install of the 8.0.0 RC2
Error: Command failed: lipo -extract i386 WebRTC -o WebRTC-i386
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: -extract i386 specified but fat file: WebRTC does not contain that architecture
Just follow the doc when it comes to Apple Submission:
https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/docs/Building.md#apple-store-submission
We expect the command:
file platforms/ios/Bandcast/Plugins/cordova-plugin-iosrtc/WebRTC.framework/WebRTC
To Give:
Mach-O universal binary with 1 architecture: [arm64:Mach-O 64-bit dynamically linked shared library arm64]
platforms/ios/Bandcast/Plugins/cordova-plugin-iosrtc/WebRTC.framework/WebRTC (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
plugins/cordova-plugin-iosrtc/lib/WebRTC.framework/WebRTC: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit dynamically linked shared library x86_64] [arm64]
plugins/cordova-plugin-iosrtc/lib/WebRTC.framework/WebRTC (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
plugins/cordova-plugin-iosrtc/lib/WebRTC.framework/WebRTC (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
cd plugins/cordova-plugin-iosrtc/lib/WebRTC.framework
lipo -remove x86_64 WebRTC -o WebRTC
cordova platform remove ios
cordova platform add ios@latest
file platforms/ios/Bandcast/Plugins/cordova-plugin-iosrtc/WebRTC.framework/WebRTC
Mach-O universal binary with 1 architecture: [arm64:Mach-O 64-bit dynamically linked shared library arm64]
platforms/ios/Bandcast/Plugins/cordova-plugin-iosrtc/WebRTC.framework/WebRTC (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
Thank you @numerized I will check
This works for me using the provided script after that fix, since V8 does not include i386 and armv7 anymore.
node plugins/cordova-plugin-iosrtc/extra/ios_arch.js --extract
node plugins/cordova-plugin-iosrtc/extra/ios_arch.js --device
node plugins/cordova-plugin-iosrtc/extra/ios_arch.js --clean
haroldthetiot@Harolds-MacBook-Pro cordova-plugin-iosrtc-sample % node plugins/cordova-plugin-iosrtc/extra/ios_arch.js --list
List WebRTC architectures...
WebRTC: Mach-O universal binary with 1 architecture: [arm64:Mach-O 64-bit dynamically linked shared library arm64]
WebRTC (for architecture arm64): Mach-O 64-bit dynamically linked shared library arm64
Reference: https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/docs/Building.md#strip-simulator-archs-usage
I confirm travis was failing silently on v8, V7 was ok.
V8 Prior ded470f

https://travis-ci.org/github/cordova-rtc/cordova-plugin-iosrtc/jobs/714800345#L1849
V7 still include i386 and armv7

https://travis-ci.org/github/cordova-rtc/cordova-plugin-iosrtc/jobs/714800177#L1869
Thank you @numerized