简体   繁体   English

为什么 Xcode 在这个 Ionic 应用程序中找不到 info.plist?

[英]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 removeplatform 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.

相关问题 无法填写xcode项目,因为缺少info.plist - can't complie xcode project because missing info.plist 无法更改info.plist,Xcode 5.1中的项目类型 - Can’t change types of items in info.plist, Xcode 5.1 无法在XCODE 7中编辑Info.plist(具有读/写权限) - Can't edit Info.plist (read/write permission) in XCODE 7 Xcode 11 无法将 Info.plist 重新分配到组中 - Xcode 11 can't reallocate Info.plist into a group 无法从 Xcode 11 上传 .ipa -“Info.plist 表示 iOS 应用程序,但提交了 pkg 或 mpkg” - Can't upload .ipa from Xcode 11 - "The Info.plist indicates an iOS app, but submitting a pkg or mpkg" 应用程序因Info.plist文件麦克风中缺少目的字符串而被拒绝,但我无法在info.plist中添加说明 - App got rejected for missing Purpose String in Info.plist File Microphone, but I can't add the description in info.plist 无法本地化 info.plist 字符串 - Can't localize info.plist strings 在Xcode中,info.plist中的Bundle名称不会更改包名称(.app文件名) - in Xcode, Bundle name in info.plist doesn't change bundle name (.app file name) Xcode 说 Facebook 应用程序 ID 不包含在 info.plist 中,即使我已经提到它 - Xcode says Facebook app id isn't included in info.plist even though I have mentioned it xCode不会列出storyboard或info.plist进行本地化 - xCode won't list storyboard or info.plist for localization
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM