question

lmhpllc avatar image
lmhpllc asked

Having Trouble with Amazon Mobile Ads using Unity

I have been stuck for hours. I recently implemented Amazon mobile ads to my unity project for my iOS application. I am using Unity 5.3.3. I added the unity plugin and the framework for amazon ads in my unity project. I build for my iPhone and iPad and the Amazon ads work perfectly! But, when I go to archive the project in order to send it to Apple, I get a Mach-o linker error. It says: ld: bitcode bundle could not be generated because '/Users/MyUsername/AppName/Frameworks/Plugins/iOS/AmazonMobileAds/AmazonAd.framework/AmazonAd(AmazonAdOptions.o)' was built without full bitcode. All object files and libraries for bitcode must be generated from Xcode Archive or Install build for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) I also manually added all of the extra frameworks needed for the Amazon Mobile Ads. When I disable bitcode I get these three errors: Undefined symbols for architecture armv7: "_OBJC_CLASS_$_ADInterstitialAd", referenced from: objc-class-ref in iAD.o "_OBJC_CLASS_$_ADBannerView", referenced from: objc-class-ref in iAD.o ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) I have no idea what I'm doing wrong. I would greatly appreciate any opinions on what I'm missing. Thanks guys!
mobile ads
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lmhpllc avatar image
lmhpllc answered
So, I think i fixed it. I re added everything one more time. Instead of adding the framework to the unity project, I directly added it to xcode. Had to right click the project name, then add the framework. Before, I added the framework to xcode without doing that step which gave me problems thinking I had to import it to unity. But, I had to disable bitcode for it to work.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lmhpllc avatar image
lmhpllc answered
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.