1

我已将 MoPub iOS SDK 添加到我相当简单的项目中,以允许应用程序中不仅仅是 iAd 的广告。

当我在模拟器上运行应用程序时,一切都很好 - 但是当我尝试将应用程序发送/复制到我的 iPhone 时,我收到 18 条“Apple Mach-O Linker Error”错误消息:

"_MillennialMediaAdObjectKey", referenced from:
  -[MPMillennialBannerCustomEvent adWasTapped:] in MPMillennialBannerCustomEvent.o
  -[MPMillennialBannerCustomEvent modalDidDismiss:] in MPMillennialBannerCustomEvent.o
"_MillennialMediaAdTypeKey", referenced from:
  -[MPMillennialInterstitialCustomEvent notificationIsRelevant:] in MPMillennialInterstitialCustomEvent.o
  -[MPMillennialInterstitialCustomEvent adWasTapped:] in MPMillennialInterstitialCustomEvent.o
"_OBJC_CLASS_$_MMAdView", referenced from:
  objc-class-ref in MPMillennialBannerCustomEvent.o
"_MillennialMediaAPIDKey", referenced from:
  -[MPMillennialInterstitialCustomEvent notificationIsRelevant:] in MPMillennialInterstitialCustomEvent.o
"_MillennialMediaAdModalDidDismiss", referenced from:
  -[MPMillennialInterstitialCustomEvent init] in MPMillennialInterstitialCustomEvent.o
  -[MPMillennialBannerCustomEvent init] in MPMillennialBannerCustomEvent.o
"_MillennialMediaAdModalWillAppear", referenced from:
  -[MPMillennialInterstitialCustomEvent init] in MPMillennialInterstitialCustomEvent.o
"_OBJC_CLASS_$_GADRequest", referenced from:
  objc-class-ref in MPGoogleAdMobInterstitialCustomEvent.o
  objc-class-ref in MPGoogleAdMobBannerCustomEvent.o
"_MillennialMediaAdWasTapped", referenced from:
  -[MPMillennialInterstitialCustomEvent init] in MPMillennialInterstitialCustomEvent.o
  -[MPMillennialBannerCustomEvent init] in MPMillennialBannerCustomEvent.o
"_OBJC_CLASS_$_GADInterstitial", referenced from:
  objc-class-ref in MPGoogleAdMobInterstitialCustomEvent.o
"_OBJC_CLASS_$_MMInterstitial", referenced from:
  objc-class-ref in MPMillennialInterstitialCustomEvent.o
"_OBJC_CLASS_$_GADBannerView", referenced from:
  objc-class-ref in MPGoogleAdMobBannerCustomEvent.o
"_MillennialMediaAdModalWillDismiss", referenced from:
  -[MPMillennialInterstitialCustomEvent init] in MPMillennialInterstitialCustomEvent.o
"_OBJC_CLASS_$_MMRequest", referenced from:
  objc-class-ref in MPMillennialInterstitialCustomEvent.o
  objc-class-ref in MPMillennialBannerCustomEvent.o
"_MillennialMediaAdTypeInterstitial", referenced from:
  -[MPMillennialInterstitialCustomEvent notificationIsRelevant:] in MPMillennialInterstitialCustomEvent.o
  -[MPMillennialInterstitialCustomEvent adWasTapped:] in MPMillennialInterstitialCustomEvent.o
"_MillennialMediaAdModalDidAppear", referenced from:
  -[MPMillennialInterstitialCustomEvent init] in MPMillennialInterstitialCustomEvent.o
"_kGADAdSizeBanner", referenced from:
  -[MPGoogleAdMobBannerCustomEvent frameForCustomEventInfo:] in MPGoogleAdMobBannerCustomEvent.o
"_CGSizeFromGADAdSize", referenced from:
  -[MPGoogleAdMobBannerCustomEvent frameForCustomEventInfo:] in MPGoogleAdMobBannerCustomEvent.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我完全按照MoPub 网站上的指南进行了三次检查我将所有 MoPub SDK 框架标记为“-fno-objc-arc”,并且我的所有 .m 文件在“构建阶段”中都是空白的 --> '编译源组”。

我已经在这里进行了搜索,并且大多数回复说要检查我的个人 .m 都列在编译源组部分中,因此非常感谢您对此的任何想法!

谢谢

4

2 回答 2

1

MoPub SDK 目前不支持 arm64 架构。

于 2013-11-13T20:45:40.873 回答
0

正如 user2820885 所说,MoPub Full SDK 不支持 arm64 架构。更改架构并正常工作。

从 $(ARCHS_STANDARD) 到 armv7

于 2015-04-26T15:01:39.267 回答