簡體   English   中英

為什么 Xcode 在這個 Ionic 應用程序中找不到 info.plist?

[英]Why can't Xcode find the info.plist in this Ionic app?

我無法繞過這個錯誤。 不知道為什么它會拋出這個。 我還有其他類似的 Ionic 應用程序構建得很好。 我沒有看到任何差異,也無法在網上找到解決方案。 以下是錯誤:

Info.plist 實用程序錯誤組

錯誤:無法從“.../brt-portal/platforms/ios/CordovaLib/Cordova/Info.plist”讀取數據:文件“Info.plist”無法打開,因為沒有這樣的文件。

這是我的 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

這聽起來像是與現代構建系統有關。 也就是說,XCode 10 默認使用現代構建系統,而 Cordova 4.5.5 沒有。

您可以做的是更新到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:

{  
"ios": {
    "debug": {
      "buildFlag": [
        "-UseModernBuildSystem=0"
      ]
    },
    "release": {
      "buildFlag": [
        "-UseModernBuildSystem=0"
      ]
    }
  }
}

或打開您的 XCode 工作區,然后單擊File -> Workspace Settings -> Build System: Legacy Build System

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM