Add AdMob Error Record

Source: Internet
Author: User
Tags admob

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.