iOS - Need help to integrate with FBAudienceNetwork v5.x.x

Hi,

I try to integrate Cocos Creator with Facebook audience network, by default Cocos Creator generate Podfile for platform ios 8.0 and FBAudienceNetwork v4.99.3, but this lib is out of date so I want to update it to v5.x.

I change Podfile to ios 9.0 as below then execute ‘pod update’ command.

platform :ios, '9.0'

The lib was updated but cocos creator can not build with new lib.
This is the error when I built by xCode,

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

Please help me to fix it.

1 Like

If you also open facebook live stream sdk ,you need to close it and delete your build folder and rebuild the project, add corevideo.framework into your project.