Admob and cocos2d-x ios integration

Hello,

Im follow the tutorial of integration of google developer web site but i have this error:

ld: warning: directory not found for option ‘-L"COCOS_PATH/cocos2d-x-2.2.2/projects/praxe-a-revolta/proj.ios/…/…/…/cocos2dx/platform/third_party/ios/libraries"’
ld: warning: directory not found for option ‘-L"COCOS_PATH/cocos2d-x-2.2.2/projects/praxe-a-revolta/proj.ios/…/…/…/external/libwebsockets/ios/lib"’
ld: library not found for -lcurl
clang: error: linker command failed with exit code 1 (use -v to see invocation)

How can i solve that?

Regards

I have the same issue and haven’t found a solution yet.

I know what happened.
When you add the admob library to xcode, xcode change the paht of these two itens.
You have to rechange the path to the original.

Loojk for Library Search Paths inside Build Settings, there you’ll find the paths to these two libraries, the correct paths are:

“$(SRCROOT)/…/…/…/cocos2dx/platform/third_party/ios/libraries”
“$(SRCROOT)/…/…/…/external/libwebsockets/ios/lib”

Xcode change them thinking they are wrong, it’s because that your code don’t compile. When you create a project from Scratch your paths are correct, you add a library and xcode create problems.

Thanks, solved!

This is the last thing that i would thinking that is a problem.

Regards

Add quotation marks ( " " ) to begin and end new library search path:
“/Users/huync/Documents/MyData/Projects/cocos2d-x-2.2.1/projects/MyGame/Classes/GoogleAdMobAdsSdkiOS”