EinfachHans / cordova-plugin-advanced-imagepicker

Cordova Plugin for an advanced (multiple) ImagePicker
29 stars 48 forks source link

(bug): plugin installation Error: Pod command failed with exit code 1 #12

Closed dmacasero closed 3 years ago

dmacasero commented 3 years ago

Bug Report

Current Behavior: Adding the plugin throws an error on ios platform: Running command: pod install --verbose Failed to install 'cordova-plugin-advanced-imagepicker': Error: pod: Command failed with exit code 1 at ChildProcess.whenDone (/Cordova/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:136:25) at ChildProcess.emit (events.js:315:20) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)

Expected Behavior: Adding the plugin works on ios without error

Steps to reproduce:

  1. Create Ionic Project
  2. Add Cordova ios platform
  3. cordova plugin add cordova-plugin-advanced-imagepicker

Environment information:

EinfachHans commented 3 years ago

please try to run pod repo update before

dmacasero commented 3 years ago

You run this after cordova prepare ios ?

EinfachHans commented 3 years ago

just run it once and repeat the build steps

EinfachHans commented 3 years ago

Closed due inactivity

scyclops commented 2 years ago

I found that adding <preference name="SwiftVersion" value="5.3" /> to my cordova app config.xml file before installing the cordova-plugin-advanced-imagepicker fixed the problem for me.