4

我正在 github 上为我的 robovm-libgdx 项目集成 admob 绑定:https ://github.com/BlueRiverInteractive/robovm-ios-bindings/tree/master/admob,请 遵循以下文档:https ://github.com/libgdx /libgdx/wiki/Admob-in-libgdx#ios-setup-robovm

在使用设备调试步骤中,出现错误:

6/20/14 10:02:57 AM: [ERROR] Undefined symbols for architecture armv7:
6/20/14 10:02:57 AM: [ERROR]   "_, referenced from:
6/20/14 10:02:57 AM: [ERROR]       l001 in libadmob.a(GADGestureUtil.o)
6/20/14 10:02:57 AM: [ERROR]   "_SCNetworkReachabilityGetFlags", referenced from:
6/20/14 10:02:57 AM: [ERROR]       l001 in libadmob.a(GADGestureUtil.o)
6/20/14 10:02:57 AM: [ERROR]   "_OBJC_CLASS_$_MMessageComposeViewController", referenced from:
6/20/14 10:02:57 AM: [ERROR]       objc-class-ref in libadmob.a(GADOpener.o)
6/20/14 10:02:57 AM: [ERROR]   "_OBJC_CLASS_$_MFMailComposeViewController", referenced from:
6/20/14 10:02:57 AM: [ERROR]       objc-class-ref in libadmob.a(GADOpener.o)
6/20/14 10:02:57 AM: [ERROR]   "_SCNetworkReachabilityCreateWithName", referenced from:
6/20/14 10:02:57 AM: [ERROR]       -[GADNetworkChecker startNetworkChecking] in libadmob.a(GADNetworkChecker.o)
6/20/14 10:02:58 AM: [ERROR]   "_OBJC_CLASS_$_CTTelephonyNetworkInfo", referenced from:
6/20/14 10:02:58 AM: [ERROR]       objc-class-ref in libadmob.a(GADDevice.o)
6/20/14 10:02:58 AM: [ERROR]   "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
6/20/14 10:02:58 AM: [ERROR]       -[GADNetworkChecker stopNetworkChecking] in libadmob.a(GADNetworkChecker.o)
6/20/14 10:02:58 AM: [ERROR]   "_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
6/20/14 10:02:58 AM: [ERROR]       -[GADNetworkChecker startNetworkChecking] in libadmob.a(GADNetworkChecker.o)
6/20/14 10:02:58 AM: [ERROR]   "_SCNetworkReachabilitySetCallback", referenced from:
6/20/14 10:02:58 AM: [ERROR]       -[GADNetworkChecker startNetworkChecking] in libadmob.a(GADNetworkChecker.o)
6/20/14 10:02:59 AM: [ERROR] ld: symbol(s) not found for architecture armv7
6/20/14 10:02:59 AM: [ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
6/20/14 10:02:59 AM: [ERROR] Build fail

我需要你帮助解决它。谢谢!

4

1 回答 1

3

我已经通过添加另外三个框架(MessageUI、SystemConfiguration、CoreTelephony)解决了这个问题——现在我在 robovm.xml 中的框架看起来像:

<frameworks>
  <framework>UIKit</framework>
  <framework>OpenGLES</framework>
  <framework>QuartzCore</framework>
  <framework>CoreGraphics</framework>
  <framework>OpenAL</framework>
  <framework>AudioToolbox</framework>
  <framework>AVFoundation</framework>
  <framework>MessageUI</framework>
  <framework>SystemConfiguration</framework>
  <framework>CoreTelephony</framework>
</frameworks>
于 2014-07-15T15:02:06.643 回答