Build Error 5 (_OBJC_CLASS_$_ASIdentifierManager)

Hi,

 

I have get some errors when build my app for iOS. I can’t sumbit to apple my app update, how can resolve this problem.

 

 

 

Feb 16 09:43:12.097: BUILD ERROR: There was a problem linking the app.

Check the console for more information.

Feb 16 09:43:12.097: ERROR: Builder failed: ld: warning: ObjC object file (/Users/veyselgundodu/Desktop/Renkler Android/Hayvanlar.app/.build/libtemplate/libtemplate.a(main.o)) was compiled for iOS Simulator, but linking for MacOSX

Feb 16 09:43:12.097: Undefined symbols for architecture i386:

Feb 16 09:43:12.097:   “_OBJC_CLASS_$_ASIdentifierManager”, referenced from:

Feb 16 09:43:12.097:       objc-class-ref in libads-admob.a(GADDevice.o)

Feb 16 09:43:12.097: ld: symbol(s) not found for architecture i386

Feb 16 09:43:12.098: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Feb 16 09:43:12.104: iOS build failed (5)

 

other log info:

 

Check the console for more information.

Feb 16 13:47:56.399: E RROR: Builder failed: Undefined symbols for architecture armv7 :

Feb 16 13:47:56.400:   " _OBJC_CLASS_$_ASIdentifierManager", referenced from:

Feb 16 13:47:56.400:       objc-class-ref in libads-admob.a(GADDevice.o)

Feb 16 13:47:56.400:       objc-class-ref in libads-admob.a(GADGestureIdUtil.o)

Feb 16 13:47:56.400: ld: symbol(s) not found for architecture armv7

Feb 16 13:47:56.400: clang: error: linker command failed with exit code 1 (use -v to see invocation)

Feb 16 13:47:56.408: iOS build failed (5)

I attached version info and error screenshot.

Best regards.

Hello @veyselgundogdu,

This error is from a failure while linking in the AdMob plugin. I suspect that you are doing something wrong in your code, but we would need further details and code examples from you.

By the way, are you using the “V1” version of the plugin? If so, please switch over to the V2 plugin instead:

http://docs.coronalabs.com/plugin/ads-admob-v2/index.html

Thanks,

Brent

Hi Brent,

I solved the problem, i have replace the adMob Implementation v1 to v2.

Thank you for your support.

Best regards,

Veysel.

Hello @veyselgundogdu,

This error is from a failure while linking in the AdMob plugin. I suspect that you are doing something wrong in your code, but we would need further details and code examples from you.

By the way, are you using the “V1” version of the plugin? If so, please switch over to the V2 plugin instead:

http://docs.coronalabs.com/plugin/ads-admob-v2/index.html

Thanks,

Brent

Hi Brent,

I solved the problem, i have replace the adMob Implementation v1 to v2.

Thank you for your support.

Best regards,

Veysel.