ios - 错误:在搜索路径中找不到包含的文件“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.
解决方案
打开“终端”并导航到您的颤振项目。然后在“ios”文件夹中导航cd ios
并运行pod install
。
对我来说,问题是没有安装吊舱。
推荐阅读
- c# - 如何将命令发送到部署在 Kubernetes 上的特定 pod?
- bash - 使用 i3 bindsym 和 xdotool 无限循环按键
- node.js - 团队机器人,如何动态配置消息传递端点?
- javascript - 使用服务人员的 Firefox 中可兑现文件的限制?
- dask - Dask 字符串连接聚合
- python - 您可以扫描目录以查找文件名以发现它是什么类型的文件吗?
- ocaml - 将负号绑定到 ocaml 中的值
- php - PHP json_encode - 是否有任何输入会引发错误?
- python - 如何将列表/数组中的列填充到只有列名的空 Pandas 数据框中
- javascript - 反应钩子 - 不能在普通异步函数中使用钩子?