Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/107.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 添加依赖项后颤振生成失败_Ios_Flutter_Dart_Flutter Dependencies_Dart Pub - Fatal编程技术网

Ios 添加依赖项后颤振生成失败

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.

在我尝试安装软件包后,生成失败。在我使用Mac和XCode模拟器之前,一切都很好。我只想更改状态栏的颜色。不起作用

$ 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