Admob Apple Mach-O Linker Error -
my source:
_admobbanner = [[gadbannerview alloc] initwithframe:cgrectmake(0, 0, 320, 50)]; _admobbanner.adunitid = my_banner_unit_id; _admobbanner.rootviewcontroller = self; _admobbanner.delegate = self; [self.view addsubview:_admobbanner]; [nsarray arraywithobjects:gad_simulator_id, nil]; [_admobbanner loadrequest:[gadrequest request]];
add framework
storekit.framework
systemconfiguration.framework
messageui.framework
audiotoolbox.framework
but when linking application see error:
undefined symbols architecture i386: "_objc_class_$_asidentifiermanager", referenced from: objc-class-ref in libgoogleadmobads.a(gadidentifierutilities.o) ld: symbol(s) not found architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation)
can provide pointers i've gone wrong?
you need link against adsupport.framework provide asidentifiermanager
.
Comments
Post a Comment