Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic build fails Info.plist not found

Apple has tricked me and even though I disabled autoupdates it now pulled the most recent XCode version (Version 10.0 (10A255)) and dependencies. The effect is that I can not build my app anymore, even after removing (ionic cordova platform remove ios) and re-adding the platform.

It now fails with the error below.

onic cordova run ios --debug --target="iPhone-8"  --consolelogs

...

<path>/platforms/ios/build/emulator/MyApp.app/Info.plist file not found.

[ERROR] An error occurred while running cordova run ios --debug --target iPhone-8 (exit code 1).

ionic --version
3.20.0

---- EDIT

ran with verbose and received :No scripts found for hook "before_deploy". as additional info for the failure.

----- EDIT ------

Please look here for more detail. I was able to reproduce it from scratch / a blank app template Blank app fails debug build - /Info.plist file not found

like image 470
El Dude Avatar asked Sep 24 '18 03:09

El Dude


2 Answers

If you're building on the command-line, try this

ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"

or

Xcode 10

If you are opening the project in the Xcode IDE, you need to change the build system in Workspace Settings to "Legacy Build System"

Xcode example

enter image description here

enter image description here

Now, You can also run this on command-line $ionic cordova build ios

Best of luck

like image 101
Abdul Hameed Avatar answered Nov 06 '22 05:11

Abdul Hameed


ionic cordova emulate ios -- --buildFlag="-UseModernBuildSystem=0"

Try this command it should work,this is issue with cordova.

like image 35
Devi Kiran Avatar answered Nov 06 '22 03:11

Devi Kiran