简体   繁体   中英

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

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

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

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

在此输入图像描述

在此输入图像描述

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

Best of luck

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM