1
votes

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)

1

1 Answers

1
votes

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