0

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!

Adude
  • 46
  • 5
  • Actually, the error line goes above the `Uncategorized: Command PhaseScriptExecution failed with a nonzero exit code` line. See what it says. – intraector Aug 27 '21 at 18:33
  • ../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart:1112:29: Error: The getter 'addressOf' isn't defined for the class 'ENUMLOGFONTEX'. - 'ENUMLOGFONTEX' is from 'package:win32/src/structs.dart' ('../../flutter/.pub-cache/hosted/pub.dartlang.org/win32-1.7.4+1/lib/src/structs.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'addressOf'. LOGFONT get elfLogFont => addressOf.cast().ref; ^^^^^^^^^ That is one of the errors. About 100 more of them actually. – Adude Aug 28 '21 at 01:04
  • 1
    Take a look here: https://stackoverflow.com/questions/67651806/error-the-getter-addressof-isnt-defined-for-the-class-utf8 – intraector Aug 29 '21 at 02:08
  • 2
    Thanks so much that worked! – Adude Aug 29 '21 at 17:35

0 Answers0