离子构建失败Info.plist未找到

问题描述 投票:12回答:3

Apple已经欺骗了我,即使我禁用了自动更新,它现在已经删除了最新的XCode版本(版本10.0(10A255))和依赖项。结果是,即使在删除(ionic cordova platform remove ios)并重新添加平台之后,我也无法构建我的应用程序。

它现在失败,出现以下错误。

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

----编辑

verbose一起跑,并收到:No scripts found for hook "before_deploy".作为失败的附加信息。

-----编辑------

请在这里查看更多细节。我能够从头开始重现它/一个空白的应用程序模板Blank app fails debug build - /Info.plist file not found

ios ionic-framework ionic2 ionic3 xcode10
3个回答
15
投票

离子cordova模拟ios - --buildFlag =“ - UseModernBuildSystem = 0”

尝试这个命令它应该工作,这是cordova的问题。


13
投票

如果您在命令行上构建,请尝试此操作

离子cordova模拟ios - --buildFlag =“ - UseModernBuildSystem = 0”

要么

Xcode 10

如果要在Xcode IDE中打开项目,则需要将Workspace Settings中的构建系统更改为“Legacy Build System”

Xcode示例

enter image description here

enter image description here

现在,您也可以在命令行$ ionic cordova build ios上运行它

祝你好运

© www.soinside.com 2019 - 2024. All rights reserved.