After adding the file and its framework according to the official tutorial, we find that the error follows
Undefined Symbols for Architecture i386:
"_objc_class_$_asidentifiermanager", referenced from:
Objc-class-ref in Libgoogleadmobads. A (GADIDENTIFIERUTILITIES.O)
Ld:symbol (s) not found for architecture i386
Clang:error:linker command failed with exit code 1 (use-v to see invocation)
Undefined Symbols for Architecture i386:
"_objc_class_$_skstoreproductviewcontroller", referenced from:
Objc-class-ref in Revmobads (Revmobstorecontroller. O
"_skstoreproductparameteritunesitemidentifier", referenced from:
-[revmobstorecontroller Openstorewithitunesitemid:] in Revmobads (Revmobstorecontroller. O
Ld:symbol (s) not found for architecture i386
Clang:error:linker command failed with exit code 1 (use-v to see invocation)
Finally added the Storekit.framework adsupport.framework coredata.framework by adding the framework.
Run Continue Error
Ld:duplicate symbol _objc_class_$_appdelegate in/users/abhilashreddy/library/developer/xcode/deriveddata/ santabantaa-bykvybsbvqshqshfqxdlsxiqhehc/build/intermediates/santabantaa.build/debug-iphonesimulator/ Santabantaa.build/objects-normal/i386/appdelegate-c7a14be43c5e8c81. o and/users/abhilashreddy/library/developer/xcode/deriveddata/santabantaa-bykvybsbvqshqshfqxdlsxiqhehc/build/ intermediates/santabantaa.build/debug-iphonesimulator/santabantaa.build/objects-normal/i386/ appdelegate-a37c3709371e4892. O for Architecture i386
Clang:error:linker command failed with exit code 1 (use-v to see invocation)
It turned out to be 2 of the demo also to get in, delete the demo folder add-ons just fine
Again error terminating app due to uncaught exception ' nsinvalidargumentexception ', Reason: '-[gadobjectprivate changestate:]: U Nrecognized selector sent to instance 0x95c17d0 '
Solution ADD-OBJC to the other Linker Flags of your application target ' s build setting.
Add an ad his sister's all can meet the problems have met the technology is not skilled to kill people ah. ~~~
PS: To get a full-screen admob look at the SDK does not seem to write on their own
[[Gadbannerview alloc] initWithFrame:self.view.bounds]; Result error Errors = "Ad size won't fit on screen"
But instead [[Gadbannerview alloc] Initwithframe:cgrectmake (0,0,320,480)]; We can. But at the same time write the next half screen of the cgrect, found that half-screen frame display is not complete, left and right compressed very badly, resulting in only showing an icon and a button. Do not know how to solve.
Add AdMob Error Record