[英]Why can't Xcode find the info.plist in this Ionic app?
I have not been able to get around this error.我无法绕过这个错误。 Not sure why it's throwing this.
不知道为什么它会抛出这个。 I have other similar Ionic apps that build just fine.
我还有其他类似的 Ionic 应用程序构建得很好。 I don't see any differences and haven't been able to find a resolution online.
我没有看到任何差异,也无法在网上找到解决方案。 Below is the error:
以下是错误:
Info.plist Utility Error Group
Info.plist 实用程序错误组
error: could not read data from '.../brt-portal/platforms/ios/CordovaLib/Cordova/Info.plist': The file “Info.plist” couldn't be opened because there is no such file.
错误:无法从“.../brt-portal/platforms/ios/CordovaLib/Cordova/Info.plist”读取数据:文件“Info.plist”无法打开,因为没有这样的文件。
Here is my Ionic and Xcode info for the project这是我的 Ionic 和 Xcode 项目信息
Ionic:
Ionic CLI : 6.10.1 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.2.4
Cordova:
Cordova CLI : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : ios 4.5.5
Cordova Plugins : no whitelisted plugins (22 plugins total)
Utility:
cordova-res (update available: 0.15.1) : 0.9.0
native-run : 1.0.0
System:
ios-deploy : 1.10.0
ios-sim : 6.1.3
NodeJS : v13.13.0 (/usr/local/Cellar/node/13.13.0_1/bin/node)
npm : 6.14.2
OS : macOS Catalina
Xcode : Xcode 11.5 Build version 11E608c
This sounds like it's related to modern build system.这听起来像是与现代构建系统有关。 Namely, XCode 10 uses the modern build system by default, whereas Cordova 4.5.5 does not.
也就是说,XCode 10 默认使用现代构建系统,而 Cordova 4.5.5 没有。
What you could do is either to update to cordova-ios
5.0+ ( platform remove
and platform add
to be sure everything is rebuilt correctly).您可以做的是更新到
cordova-ios
5.0+( platform remove
和platform add
以确保一切都正确重建)。
Or force XCode to use Legacy build system via: ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0
, or create a build.json
in your project root with: Or force XCode to use Legacy build system via:
ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0
, or create a build.json
in your project root with:
{
"ios": {
"debug": {
"buildFlag": [
"-UseModernBuildSystem=0"
]
},
"release": {
"buildFlag": [
"-UseModernBuildSystem=0"
]
}
}
}
Or open your XCode workspace and click File -> Workspace Settings -> Build System: Legacy Build System
或打开您的 XCode 工作区,然后单击
File -> Workspace Settings -> Build System: Legacy Build System
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.