0
votes

I am getting this error while adding FCM in my app via Cocoa pods. FCM is the Firebase cloud messaging SDK from the google.

I have tried to removing arm64 from target of project and pod project. And setting build for architecture only yes/no both.

Undefined symbols for architecture arm64: "_OBJC_CLASS_$_FIRInstanceID", referenced from: type metadata accessor for __ObjC.FIRInstanceID in AppDelegate.o "_OBJC_CLASS_$_FIRMessaging", referenced from: type metadata accessor for __ObjC.FIRMessaging in AppDelegate.o "_OBJC_CLASS_$_FIRApp", referenced from: type metadata accessor for __ObjC.FIRApp in AppDelegate.o "_kFIRInstanceIDTokenRefreshNotification", referenced from: Memorymail.AppDelegate.configNotificationSettings (Memorymail.AppDelegate)() -> () in AppDelegate.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

1
Has anyone solution for this?Gopal Devra
Did you install the pods? Did you build from the workspace and not the project?user102008
Yes, now it is solved.Gopal Devra
@GopalDevra, could you explain what did you do for this thing to work?DoubleK

1 Answers

0
votes

I've experienced same cases. I resolved it by adding GoogleService-Info.plist to project. (I downloaded it from firebase console.)