2

Build fails after I've tried to install flutter_statusbarcolor package. Everything was ok before I did it, I am using Mac and XCode simulator. I just want to change color of status bar. This approach doesn't work.

$ 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ʀ.

Then I removed this package from dependencies and all files in ~/.pub-cache/hosted/pub.dartlang.org/ directory. But Flutter still throws the same error. How to restore my app and change color for status bar natively?

3
  • which version of dependence do you use? Commented Oct 2, 2019 at 13:07
  • As it mensioned in pub.dev flutter_statusbarcolor: ^0.2.2 Commented Oct 3, 2019 at 8:13
  • try with older version like 0.2.0 Commented Oct 3, 2019 at 11:12

2 Answers 2

3

This helped me:

Go to ios dir and type pod install

Reference: https://github.com/X-Wei/flutter_catalog/issues/26#issuecomment-548923989

Sign up to request clarification or add additional context in comments.

Comments

1

add

path_provider: 1.6.1 

to pubspec.yaml and then then

flutter pub get

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.