【问题标题】:flutter project not running in IOS颤振项目未在IOS中运行
【发布时间】:2021-07-08 03:23:50
【问题描述】:

尝试在 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 中也无法运行,并且显示出不同的错误,例如上面和下面:

并且错误一直像这样变化。 如果有人可以帮助我,请告诉我。 谢谢

【问题讨论】:

  • 你安装cocoapods了吗?如果是,则转到 ios 目录并运行pod install
  • 我试过了,但还是不行

标签: ios flutter flutter-dependencies


【解决方案1】:

正在尝试执行命令。

  1. cd ios
  2. 删除 Podfile.lock
  3. 吊舱解体;吊舱安装

【讨论】:

    【解决方案2】:

    然后导航到您的项目 在终端运行命令:

    1. cd ios
    2. pod install

    它会更新你的 podfile

    【讨论】:

    • 我尝试了 pod install 但错误仍然存​​在。
    • 你运行flutter clean命令了吗? ,然后删除 podfile.lock,如果不起作用则运行pod repo update
    • 关注this
    猜你喜欢
    • 2020-07-11
    • 2021-12-16
    • 1970-01-01
    • 1970-01-01
    • 2020-03-12
    • 2021-03-18
    • 2020-08-25
    • 2022-08-17
    • 2020-03-22
    相关资源
    最近更新 更多