无法构建用于扑捉模拟器错误的应用程序

问题描述 投票:0回答:1

当我退出颤振运行并重新运行颤振运行时,出现以下错误

在调试模式下在iPhone 8上启动lib / main.dart ...警告:未安装CocoaPods。跳过Pod安装。CocoaPods用于检索iOS和macOS平台端的插件代码在Dart端响应您的插件使用情况。没有CocoaPods,插件将无法在iOS或macOS上运行。有关更多信息,请参见https://flutter.dev/platform-plugins。安装:sudo gem install cocoapods

正在运行Xcode构建...Xcode构建完成。 1.1秒无法建立iOS应用程式Xcode构建错误输出:↳**建立失败**

Xcode的输出:↳注意:使用新的构建系统注意:规划构建注意:构建版本说明错误:/Users/abdulhameed/Desktop/hotel_orders/ios/Flutter/Debug.xcconfig:1:找不到包含的文件“ Pods / Target支持”搜索路径中的Files / Pods-Runner / Pods-Runner.debug.xcconfig(位于目标中项目“ Runner”中的“ Runner”)错误:/Users/abdulhameed/Desktop/hotel_orders/ios/Flutter/Debug.xcconfig:1:找不到包含的文件“ Pods / Target支持”搜索路径中的Files / Pods-Runner / Pods-Runner.debug.xcconfig(位于目标中项目“ Runner”中的“ Runner”)错误:/Users/abdulhameed/Desktop/hotel_orders/ios/Flutter/Debug.xcconfig:1:找不到包含的文件“ Pods / Target支持”搜索路径中的Files / Pods-Runner / Pods-Runner.debug.xcconfig(位于目标中项目“ Runner”中的“ Runner”)错误:/Users/abdulhameed/Desktop/hotel_orders/ios/Flutter/Debug.xcconfig:1:找不到包含的文件“ Pods / Target支持”搜索路径中的Files / Pods-Runner / Pods-Runner.debug.xcconfig(位于目标中项目“ Runner”中的“ Runner”)错误:/Users/abdulhameed/Desktop/hotel_orders/ios/Flutter/Debug.xcconfig:1:找不到包含的文件“ Pods / Target支持”搜索路径中的Files / Pods-Runner / Pods-Runner.debug.xcconfig(位于目标中项目“ Runner”中的“ Runner”)错误:/Users/abdulhameed/Desktop/hotel_orders/ios/Flutter/Debug.xcconfig:1:找不到包含的文件“ Pods / Target支持”搜索路径中的Files / Pods-Runner / Pods-Runner.debug.xcconfig(位于目标中项目“ Runner”中的“ Runner”)

无法为模拟器构建应用程序。在iPhone 8上启动应用程序时出错。

我应该如何解决此错误?

android ios xcode flutter hybrid
1个回答
0
投票

您是否安装了可可豆?如果不是这样,可能是一个有用的解决方案:https://github.com/flutter/flutter/issues/14293

© www.soinside.com 2019 - 2024. All rights reserved.