Ios run and build issue


#1

Hi, i already have a working ionic project that hv been developed in windows.

So when i tried to build the same project in mac, it throws an error

ionic3 dev$ ionic cordova build android

ionic-app-scripts build --target cordova --platform android

[ ERROR ] Command error.

i really dunno how to debug this error.

any help would be appreciated.

Ionic:

ionic (Ionic CLI) : 4.1.2 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.10

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 6.4.0, ios 4.5.5
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 1.1.1, (and 15 other plugins)

System:

Android SDK Tools : 26.1.1 (/Users/dev/Library/Android/sdk/)
NodeJS : v10.11.0 (/Users/dev/.nvm/versions/node/v10.11.0/bin/node)
npm : 6.4.1
OS : macOS High Sierra
Xcode : Xcode 10.0 Build version 10A255


#2

I had the exact same problem on the mac. I did an “ionic repair” and that completely fixed it and I can now build.

ionic help
repair ................... Remove and recreate dependencies and generated files