ionic-cli
ionic-cli copied to clipboard
ionic cap sync fails on non OSX
Description: After upgrading from Capacitor 5 to 6, ionic cap sync fails on linux because it tries to run bundle exec pod install.
[capacitor] ✔ copy ios in 368.39ms [capacitor] ✔ Updating iOS plugins in 7.48ms [capacitor] ✖ Updating iOS native dependencies with bundle exec pod install - failed! [capacitor] ✖ update ios - failed! [capacitor] [error] ERR_SUBPROCESS_COMMAND_NOT_FOUND [ERROR] An error occurred while running subprocess capacitor.
Compared to: [capacitor] ✔ copy ios in 296.50ms [capacitor] ✔ Updating iOS plugins in 7.73ms [capacitor] [info] Found 16 Capacitor plugins for ios: [capacitor] @capacitor-community/[email protected] [capacitor] @capacitor-community/[email protected] [capacitor] @capacitor-community/[email protected] [capacitor] @capacitor/[email protected] [capacitor] @capacitor/[email protected] [capacitor] @capacitor/[email protected] [capacitor] @capacitor/[email protected] [capacitor] @capacitor/[email protected] [capacitor] @capacitor/[email protected] [capacitor] @capacitor/[email protected] [capacitor] @capacitor/[email protected] [capacitor] @capacitor/[email protected] [capacitor] @newaydata/[email protected] [capacitor] @sentry/[email protected] [capacitor] [email protected] [capacitor] @newaydata/[email protected] [capacitor] [warn] Skipping pod install because CocoaPods is not installed [capacitor] [warn] Unable to find "xcodebuild". Skipping xcodebuild clean step... [capacitor] ✔ Updating iOS native dependencies with pod install in 4.18ms [capacitor] ✔ update ios in 17.48ms [capacitor] ✔ copy web in 6.86ms [capacitor] ✔ update web in 221.97μs [capacitor] [info] Sync finished in 0.775s
Steps to Reproduce: Run ionic cap sync on a non OSX system.
Output: [capacitor] ✔ copy ios in 368.39ms [capacitor] ✔ Updating iOS plugins in 7.48ms [capacitor] ✖ Updating iOS native dependencies with bundle exec pod install - failed! [capacitor] ✖ update ios - failed! [capacitor] [error] ERR_SUBPROCESS_COMMAND_NOT_FOUND [ERROR] An error occurred while running subprocess capacitor.
My ionic info:
Ionic:
Ionic CLI : 7.2.0 Ionic Framework : @ionic/angular 8.2.6 @angular-devkit/build-angular : 17.3.8 @angular-devkit/schematics : 17.3.8 @angular/cli : 17.3.8 @ionic/angular-toolkit : 11.0.1
Capacitor:
Capacitor CLI : 6.1.2 @capacitor/android : 6.1.2 @capacitor/core : 6.1.2 @capacitor/ios : 6.1.2
Cordova:
Cordova CLI : not installed Cordova Platforms : not available Cordova Plugins : not available
Utility:
cordova-res : not installed globally native-run : 2.0.1
System:
Android SDK Tools : 26.1.1 (/home/mueggler/Android/Sdk) NodeJS : v20.16.0 (/home/mueggler/.nvm/versions/node/v20.16.0/bin/node) npm : 10.8.1 OS : Linux 6.9