【发布时间】:2020-01-14 00:22:14
【问题描述】:
我的颤振项目无法在 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.
【问题讨论】:
-
您是在打开 .xcproject 还是 .xcworkspace 文件??
-
.xcworkspace 文件。谢谢,但它已由我的高级开发人员解决。仍然不知道它是如何解决的。
-
他可能更改了工作区构建设置 -> 在 Xcode 中 -> 转到文件部分 -> 工作区设置 -> 构建系统 -> 将其更改为
Legacy Build System -
由于flutter比较新,换成
Legacy Build System意义不大。 -
它只有在重新安装 Flutter SDK 后才对我有用
标签: ios xcode flutter dart cocoapods