6

我正在使用 LibGDX 和 RoboVM 制作应用程序,但我遇到了 Google 移动广告框架的问题。我到处搜索,但没有解决我的错误。

如果我像这样在robovm.xml中声明这个框架

  <frameworkPaths>
    <path>libs</path>
  </frameworkPaths>
  <frameworks>
    <framework>UIKit</framework>
    <framework>OpenGLES</framework>
    <framework>QuartzCore</framework>
    <framework>CoreGraphics</framework>
    <framework>OpenAL</framework>
    <framework>AudioToolbox</framework>
    <framework>AVFoundation</framework>
    <framework>GoogleMobileAds</framework>
  </frameworks>

当我要创建 IPA 时,它给了我这个错误。

我该如何解决这个问题?

[ERROR] Undefined symbols for architecture armv7:
[ERROR]   "_OBJC_CLASS_$_GLKView", referenced from:
[ERROR]       objc-class-ref in GoogleMobileAds(flat-armv7)
[ERROR]   "_kCVPixelBufferPixelFormatTypeKey", referenced from:
[ERROR]       l5704 in GoogleMobileAds(flat-armv7)
[ERROR]      (maybe you meant: _str_kCVPixelBufferPixelFormatTypeKey_00)
[ERROR]   "_kCVImageBufferYCbCrMatrix_ITU_R_601_4", referenced from:
[ERROR]       l4155 in GoogleMobileAds(flat-armv7)
[ERROR]   "_GLKMatrix4Identity", referenced from:
[ERROR]       l4149 in GoogleMobileAds(flat-armv7)
[ERROR]       l4160 in GoogleMobileAds(flat-armv7)
[ERROR]      (maybe you meant: _str_GLKMatrix4Identity_00)
[ERROR]   "_CVOpenGLESTextureGetTarget", referenced from:
[ERROR]       l4158 in GoogleMobileAds(flat-armv7)
[ERROR]   "_CVOpenGLESTextureCacheCreate", referenced from:
[ERROR]       l4157 in GoogleMobileAds(flat-armv7)
[ERROR]   "_CFHostStartInfoResolution", referenced from:
[ERROR]       l3806 in GoogleMobileAds(flat-armv7)
[ERROR]   "_CVBufferGetAttachment", referenced from:
[ERROR]       l4155 in GoogleMobileAds(flat-armv7)
[ERROR]      (maybe you meant: _str_CVBufferGetAttachment_00, _str_CVBufferGetAttachments_00 )
[ERROR]   "_OBJC_CLASS_$_CMMotionManager", referenced from:
[ERROR]       objc-class-ref in GoogleMobileAds(flat-armv7)
[ERROR]   "_kCVImageBufferYCbCrMatrixKey", referenced from:
[ERROR]       l4155 in GoogleMobileAds(flat-armv7)
[ERROR]      (maybe you meant: _str_kCVImageBufferYCbCrMatrixKey_00)
[ERROR]   "_CVPixelBufferGetWidth", referenced from:
[ERROR]       l4155 in GoogleMobileAds(flat-armv7)
[ERROR]      (maybe you meant: _str_CVPixelBufferGetWidthOfPlane_00, _str_CVPixelBufferGetWidth_00 )
[ERROR]   "_CFHostCreateWithName", referenced from:
[ERROR]       l3806 in GoogleMobileAds(flat-armv7)
[ERROR]   "_SecCertificateCreateWithData", referenced from:
[ERROR]       l778 in GoogleMobileAds(flat-armv7)
[ERROR]   "_CVOpenGLESTextureCacheCreateTextureFromImage", referenced from:
[ERROR]       l4158 in GoogleMobileAds(flat-armv7)
[ERROR]   "_CVOpenGLESTextureGetName", referenced from:
[ERROR]       l4158 in GoogleMobileAds(flat-armv7)
[ERROR]   "_SecTrustCreateWithCertificates", referenced from:
[ERROR]       l778 in GoogleMobileAds(flat-armv7)
[ERROR]   "_CVOpenGLESTextureCacheFlush", referenced from:
[ERROR]       l4156 in GoogleMobileAds(flat-armv7)
[ERROR]   "_CVPixelBufferGetHeight", referenced from:
[ERROR]       l4155 in GoogleMobileAds(flat-armv7)
[ERROR]      (maybe you meant: _str_CVPixelBufferGetHeight_00, _str_CVPixelBufferGetHeightOfPlane_00 )
[ERROR]   "_CFHostGetAddressing", referenced from:
[ERROR]       l3806 in GoogleMobileAds(flat-armv7)
[ERROR]   "_SecKeyRawVerify", referenced from:
[ERROR]       l780 in GoogleMobileAds(flat-armv7)
[ERROR]   "_SecTrustEvaluate", referenced from:
[ERROR]       l778 in GoogleMobileAds(flat-armv7)
[ERROR]   "_SecTrustCopyPublicKey", referenced from:
[ERROR]       l778 in GoogleMobileAds(flat-armv7)
[ERROR] ld: symbol(s) not found for architecture armv7
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
4

0 回答 0