iOS Question Facebook SDK compile problem

Roycefer

Well-Known Member
Licensed User
Longtime User
I am trying to run in debug mode a project that uses the Facebook SDK to track app events as described here:

https://developers.facebook.com/docs/ios/getting-started/

When I compile in debug mode, I get the following compilation error:
B4X:
Undefined symbols for architecture armv7:
  "_OBJC_CLASS_$_FIRAuth", referenced from:
      objc-class-ref in libiFacebook.a(iFacebook.o)
  "_OBJC_CLASS_$_FIRFacebookAuthProvider", referenced from:
      objc-class-ref in libiFacebook.a(iFacebook.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
 

Roycefer

Well-Known Member
Licensed User
Longtime User
The Facebook code snippet at the link in my first post is this:
B4X:
//  AppDelegate.m
#import <FBSDKCoreKit/FBSDKCoreKit.h>
- (void)applicationDidBecomeActive:(UIApplication *)application {
  [FBSDKAppEvents activateApp];
}

The iFacebook.xml file has a line at the bottom that says
B4X:
<dependsOn>FBSDKCoreKit.framework.3</dependsOn>

Shouldn't that dependsOn line cover the #import from the code snippet? If not, should I add some more dependsOn lines to the XML files (and if so, which ones?)?
 
Upvote 0

Roycefer

Well-Known Member
Licensed User
Longtime User
The project has some private stuff in it and it is too large to upload. Can I email it to you?
 
Upvote 0

Roycefer

Well-Known Member
Licensed User
Longtime User
Erel, did you get my email? I put "Facebook SDK compilation problem" in the subject field.
 
Upvote 0

Roycefer

Well-Known Member
Licensed User
Longtime User
Before I had tried it with just iFirebaseAuth and it didn't work. But with both it works. Thank you.
 
Upvote 0
Top