cordova-rtc / cordova-plugin-iosrtc

Cordova iOS plugin exposing the WebRTC W3C API
MIT License
690 stars 338 forks source link

Error excuting sudo node ios_arch.js --extract #723

Closed mmkecibi closed 3 years ago

mmkecibi commented 3 years ago

YOU MUST read first!

Please use Community Forum for general technical discussions and questions.

Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed, removing this checkbox will result in automatic closed issue.

Versions affected

Description

child_process.js:669 throw err; ^

Error: spawnSync /bin/sh ENOENT

Steps to reproduce

go to plugins/cordova-plugin-iosrtc/extra folder extract all archs first: node ios_arch.js --extract

Expected results

extra % sudo node ios_arch.js --extract
Extracting... child_process.js:669 throw err; ^

Error: spawnSync /bin/sh ENOENT at Object.spawnSync (internal/child_process.js:1041:20) at spawnSync (child_process.js:616:24) at execSync (child_process.js:661:15) at /Users/mkecibi/Documents/sockets/po7agents/src-cordova/plugins/cordova-plugin-iosrtc/extra/ios_arch.js:42:3 at Array.forEach () at extractArchitecture (/Users/mkecibi/Documents/sockets/po7agents/src-cordova/plugins/cordova-plugin-iosrtc/extra/ios_arch.js:40:8) at Object. (/Users/mkecibi/Documents/sockets/po7agents/src-cordova/plugins/cordova-plugin-iosrtc/extra/ios_arch.js:60:2) at Module._compile (internal/modules/cjs/loader.js:1138:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10) at Module.load (internal/modules/cjs/loader.js:986:32) { errno: 'ENOENT', code: 'ENOENT', syscall: 'spawnSync /bin/sh', path: '/bin/sh', spawnargs: [ '-c', 'lipo -extract i386 WebRTC -o WebRTC-i386' ], error: [Circular], status: null, signal: null, output: null, pid: 3637, stdout: null, stderr: null }

Actual results

hthetiot commented 3 years ago

This is not needed anymore because of xcframeworks since 6.0.18 https://github.com/cordova-rtc/cordova-plugin-iosrtc/blob/master/CHANGELOG.md#version-6018 Duplicate https://github.com/cordova-rtc/cordova-plugin-iosrtc/issues/722

Please fill the Versions affected properly next time.

hthetiot commented 3 years ago

I have used Google with the error message or bug in association with the library and Cordova words to make sure the issue I'm reporting is only related to iOSRTC.

Was already answered here https://github.com/cordova-rtc/cordova-plugin-iosrtc/discussions/641