Ios 添加依赖项后颤振生成失败
在我尝试安装软件包后,生成失败。在我使用Mac和XCode模拟器之前,一切都很好。我只想更改状态栏的颜色。不起作用Ios 添加依赖项后颤振生成失败,ios,flutter,dart,flutter-dependencies,dart-pub,Ios,Flutter,Dart,Flutter Dependencies,Dart Pub,在我尝试安装软件包后,生成失败。在我使用Mac和XCode模拟器之前,一切都很好。我只想更改状态栏的颜色。不起作用 $ flutter run Launching lib/main.dart on iPhone Xʀ in debug mode... Running Xcode build... Xcode build done.
$ flutter run
Launching lib/main.dart on iPhone Xʀ in debug mode...
Running Xcode build...
Xcode build done. 1,3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
note: Using new build systemnote: Planning buildnote: Constructing build descriptionerror: /Users/Bob/Documents/Projects/Flutter/gp/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' from project 'Runner')error:
/Users/Bob/Documents/Projects/Flutter/gp/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' from project 'Runner')error: /Users/Bob/Documents/Projects/Flutter/gp/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' from project 'Runner')error: /Users/Bob/Documents/Projects/Flutter/gp/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' from project 'Runner')error:
/Users/Bob/Documents/Projects/Flutter/gp/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' from project 'Runner')error: /Users/Bob/Documents/Projects/Flutter/gp/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' from project 'Runner')
Could not build the application for the simulator.
Error launching application on iPhone Xʀ.
我从依赖项和~/.pub cache/hosted/pub.dartlang.org/
目录中的所有文件中删除了这个包。但弗利特仍然犯了同样的错误。如何还原我的应用程序并以本机方式更改状态栏的颜色?这有助于我:
转到ios目录并键入pod安装
参考:添加
path_provider: 1.6.1
到pubspec.yaml然后
然后
可能是缺少了依赖关系 为了修复,您需要获取软件包并安装pod
flatter clean
flatter pub get
pod安装
您使用哪一版本的dependence?如
flatter\u statusbarcolor:^0.2.2
中所述,请尝试使用旧版本,如0.2.0
flutter pub get