Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undefined symbols for architecture armv7 for FBSDKLoginCore

I recently encountered this error when trying to implement Facebook Login using Parse SDK and Facebook SDK.

I took the following steps:

enter image description here

Imported the following frameworks

enter image description here

Listed them under bridging header

enter image description here

I get the following errors after I built my project.

Solutions that I attempted:

-Removing the -ObjC from "Other Linkers" and adding $(inherited) -Changing Architecture to "STANDARD" -Selecting libz.1.2.5.dylib build and run

I'm not sure what I'm doing wrong.

UPDATE:

Here's my command line as requested.

enter image description here

like image 316
htjohn Avatar asked Nov 14 '15 22:11

htjohn


1 Answers

Its about your link order. LoginKit needs symbols from CoreKit but cant find them due to your wrong link order. Thats why you get the Undefined symbols error message.

Solution: Reverse your link order.

Go to your target in Xcode -> Build phases -> Link binary with libraries and then drag those two libraries around. :)

like image 144
MarkusAtCvlabDotDe Avatar answered Sep 19 '22 01:09

MarkusAtCvlabDotDe