簡體   English   中英

flutter 項目未在 IOS 中運行

[英]flutter project not running in IOS

嘗試在 IOS 中運行 flutter 應用程序時出現錯誤。 首先,我嘗試運行一個在 Windows 中為 android 制作的項目,它可以工作,但是當我為 IOS 運行相同的項目時,它不起作用並顯示 pod 文件的錯誤,如下所示:

Unable to load contents of file list:
'/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist'

Unable to load contents of file list: 
'/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Debug-input-files.xcfilelist'

Unable to load contents of file list:
 '/Target Support Files/Pods-Runner/Pods-Runner-frameworks-Debug-output-files.xcfilelist'

/Users/shikha/Desktop/vodome/ios/Runner/AppDelegate.h:1:9:
 'Flutter/Flutter.h' file not found

即使我創建了一個新項目,它在 IOS 中也不起作用,並且顯示出不同的錯誤,例如上面和下面:

在此處輸入圖像描述

並且錯誤像這樣不斷變化。 如果有人可以幫助我,請告訴我。 謝謝你

試圖遵循命令。

  1. cd ios
  2. 刪除 Podfile.lock
  3. 吊艙解體; 吊艙安裝

導航到您的項目,然后在終端中運行命令:

  1. cd ios
  2. pod install

它會更新你的 podfile

暫無
暫無

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

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