Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GeneratedPluginRegistrant"

2,913

You might have this issue because of a project created pre 1.12. See this guide to upgrade.

Try these commands :

flutter upgrade
rm -f ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
rm -rf ios/Podfile ios/Podfile.lock ios/Pods ios/Runner.xcworkspace

in File-> Workspace Settings change the build system to New Build System

See this answer

Share:
2,913
ThomoJames97
Author by

ThomoJames97

Updated on December 24, 2022

Comments

  • ThomoJames97
    ThomoJames97 over 1 year

    I'm developing a Flutter app and getting this error. I have tried flutter clean, rm podfile, pod deintegrate, removed podfile.lock, but non seem to fix.

    The full error message in Xcode is as follows:

    Undefined symbols for architecture x86_64: "OBJC_CLASS$_GeneratedPluginRegistrant", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

  • ThomoJames97
    ThomoJames97 over 3 years
    Unfortunately this does not help, as it's an issue specifically affecting iOS - the linked article is for Android.
  • MickaelHrndz
    MickaelHrndz over 3 years
    Oh, my bad. I edited with a couple possible solutions I could find.
  • SULPHURIC ACID
    SULPHURIC ACID over 2 years
    thid didnt worked for me, on m1 chip mac.