首页 > 解决方案 > 错误:在搜索路径中找不到包含的文件“Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig”(在目标“Runner”中)

问题描述

我的颤振项目不适用于 ios 设备。我在命令下面试过了sudo gem install cocoapods

颤动运行:

Warning: CocoaPods not installed. Skipping pod install.
  CocoaPods is used to retrieve the iOS and macOS platform side's plugin code that responds to your plugin usage on the Dart side.
  Without CocoaPods, plugins will not work on iOS or macOS.
To install:
  sudo gem install cocoapods
  pod setup



Running Xcode build...                                                  
                                                   
Xcode build done.                                            4.3s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    error: /Users/sukhjinder/StudioWorkspace/shrutiFlutterProjects/myapp/ios/Flutter/Debug.xcconfig:1: could not find included file 'Pods/Target
    Support Files/Pods-Runner/Pods-Runner.debug.xcconfig' in search paths (in target 'Runner')
   
    note: Using new build systemnote: Planning buildnote: Constructing build description

Could not build the precompiled application for the device.

Error launching application on iPhone.

标签: iosxcodeflutterdartcocoapods

解决方案


打开“终端”并导航到您的颤振项目。然后在“ios”文件夹中导航cd ios并运行pod install

对我来说,问题是没有安装吊舱。


推荐阅读