【发布时间】: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