I have written over 9,000 lines of code in my Flutter Application, and all of the sudden a couple months later (I tested it months before and it was fine) it stopped with this message:
error: /Users/asheralbrecht/Desktop/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences-0.5.12+4/ios/Classes/FLTSharedPreferencesPlugin.h: No such file or directory (in target 'shared_preferences' from project 'Pods')
So I ran flutter clean and flutter build ios and then Xcode said:
Uncategorized:
Command PhaseScriptExecution failed with a nonzero exit code
With about 30 errors.
I don't know what is going on, but I am stressing that I am going to loose all my hard work and effort on this app.
Do any of you know how to fix these errors? Is there any more info I need to give or explain?
PS: I am also using Cocoa Pods for my Firebase Database.
Some sources I used:
Shared Preferences error in Flutter - iOS on Mac
Thanks in advance!