microsoft / cordova-plugin-code-push

Cordova plugin for CodePush
http://appcenter.ms
Other
643 stars 328 forks source link

problem with build android or ios ( code push I think the problem) #574

Open almukhalafi opened 4 years ago

almukhalafi commented 4 years ago

Description

I install codepush to my ionic 3 , then I cannot build the android and ios , I don't know where is the problem but I think it because (code push)

Reproduction

Additional Information

Ionic:

ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic) Ionic Framework : ionic-angular 3.9.9 @ionic/app-scripts : 3.2.4

Capacitor:

capacitor (Capacitor CLI) : 1.0.0 @capacitor/core : 1.0.0

Cordova:

cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : ios 5.0.1 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.2, (and 14 other plugins)

System:

ios-deploy : 1.9.4 ios-sim : 8.0.2 NodeJS : v11.2.0 (/usr/local/Cellar/node/11.2.0/bin/node) npm : 6.4.1 OS : macOS Mojave Xcode : Xcode 11.0 Build version 11A420a

(The more info the faster we will be able to address it!)

` Installing "cordova-plugin-zip" for ios Plugin dependency "cordova-plugin-file@4.3.3" already fetched, using that version. Dependent plugin "cordova-plugin-file" already installed on ios. Installing "ionic-plugin-deeplinks" for ios Installing "onesignal-cordova-plugin" for ios "framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag. Running command: pod install --verbose Discovered saved plugin "cordova-plugin-file-transfer". Adding it to the project Installing "cordova-plugin-file-transfer" for ios Failed to install 'cordova-plugin-file-transfer': CordovaError: Version of installed plugin: "cordova-plugin-file@4.3.3" does not satisfy dependency plugin requirement "cordova-plugin-file@>=5.0.0". Try --force to use installed plugin as dependency. at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:544:43 at process.internalTickCallback (internal/process/next_tick.js:77:7) Failed to restore plugin "cordova-plugin-file-transfer" from config.xml. You might need to try adding it again. Error: Version of installed plugin: "cordova-plugin-file@4.3.3" does not satisfy dependency plugin requirement "cordova-plugin-file@>=5.0.0". Try --force to use installed plugin as dependency. [ERROR] An error occurred while running subprocess cordova.

    cordova platform add ios --save exited with exit code 1.

    Re-running this command with the --verbose flag may provide more
    information.`
EmeryGuillaume commented 4 years ago

Hi. Your project sets the version of the cordova-plugin-file to 4.3.3. Code-push plugin needs cordova-plugin-file v5. Upgrade this plugin and everything should work.