Undefined symbols for architecture x86_64, for GoogleMobileAds 7.24.0, iOS 11/ XCode 9.0

2,412 views
Skip to first unread message

Adam

unread,
Oct 5, 2017, 2:58:52 PM10/5/17
to Google Mobile Ads SDK Developers
I got a ton of link errors when I tried to update the sdk, not sure why:

Undefined symbols for architecture x86_64:

  "_OBJC_CLASS_$_CADisplayLink", referenced from:

      objc-class-ref in GoogleMobileAds(flat-x86_64)

  "_OBJC_CLASS_$_CATransaction", referenced from:

      objc-class-ref in GoogleMobileAds(flat-x86_64)

  "_OBJC_CLASS_$_GLKView", referenced from:

      objc-class-ref in GoogleMobileAds(flat-x86_64)

  "_OBJC_CLASS_$_EAGLContext", referenced from:

      objc-class-ref in GoogleMobileAds(flat-x86_64)

  "_OBJC_CLASS_$_CMMotionManager", referenced from:

      objc-class-ref in GoogleMobileAds(flat-x86_64)

  "_OBJC_CLASS_$_CATransition", referenced from:

      objc-class-ref in GoogleMobileAds(flat-x86_64)

  "_glClearColor", referenced from:

      l5307 in GoogleMobileAds(flat-x86_64)

  "_glViewport", referenced from:

      l5307 in GoogleMobileAds(flat-x86_64)

  "_kCVPixelBufferPixelFormatTypeKey", referenced from:

      l5301 in GoogleMobileAds(flat-x86_64)

  "_kEAGLColorFormatRGBA8", referenced from:

      l5281 in GoogleMobileAds(flat-x86_64)

  "_CMTimeSubtract", referenced from:

      l5242 in GoogleMobileAds(flat-x86_64)

  "_CMTimeMakeWithSeconds", referenced from:

      l5239 in GoogleMobileAds(flat-x86_64)

  "_kUTTagClassMIMEType", referenced from:

      l5062 in GoogleMobileAds(flat-x86_64)

      l5191 in GoogleMobileAds(flat-x86_64)

  "_UTTypeCreatePreferredIdentifierForTag", referenced from:

      l5062 in GoogleMobileAds(flat-x86_64)

      l5191 in GoogleMobileAds(flat-x86_64)

  "_CMTimeRangeGetEnd", referenced from:

      l5056 in GoogleMobileAds(flat-x86_64)

      l5242 in GoogleMobileAds(flat-x86_64)

  "_CMTimeGetSeconds", referenced from:

      l5056 in GoogleMobileAds(flat-x86_64)

      l5217 in GoogleMobileAds(flat-x86_64)

      l5242 in GoogleMobileAds(flat-x86_64)

      l5267 in GoogleMobileAds(flat-x86_64)

      l5268 in GoogleMobileAds(flat-x86_64)

  "_kCMTimeZero", referenced from:

      l5021 in GoogleMobileAds(flat-x86_64)

      l5056 in GoogleMobileAds(flat-x86_64)

      l5237 in GoogleMobileAds(flat-x86_64)

      l5242 in GoogleMobileAds(flat-x86_64)

  "_OBJC_CLASS_$_MPVolumeView", referenced from:

      objc-class-ref in GoogleMobileAds(flat-x86_64)

  "_CMTimeMake", referenced from:

      l5020 in GoogleMobileAds(flat-x86_64)

      l5256 in GoogleMobileAds(flat-x86_64)

  "_CVOpenGLESTextureGetTarget", referenced from:

      l3814 in GoogleMobileAds(flat-x86_64)

  "_CVOpenGLESTextureGetName", referenced from:

      l3814 in GoogleMobileAds(flat-x86_64)

  "_kCVImageBufferYCbCrMatrixKey", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_glTexParameterf", referenced from:

      l3814 in GoogleMobileAds(flat-x86_64)

  "_CMTimeCompare", referenced from:

      l5021 in GoogleMobileAds(flat-x86_64)

      l5056 in GoogleMobileAds(flat-x86_64)

      l5242 in GoogleMobileAds(flat-x86_64)

  "_kCATransitionFromTop", referenced from:

      l1504 in GoogleMobileAds(flat-x86_64)

  "_glUseProgram", referenced from:

      l3813 in GoogleMobileAds(flat-x86_64)

  "_glGetUniformLocation", referenced from:

      l3813 in GoogleMobileAds(flat-x86_64)

  "_glBindAttribLocation", referenced from:

      l3813 in GoogleMobileAds(flat-x86_64)

  "_kCVImageBufferYCbCrMatrix_ITU_R_601_4", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_CVOpenGLESTextureCacheFlush", referenced from:

      l3812 in GoogleMobileAds(flat-x86_64)

  "_glUniform1f", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_CVPixelBufferGetWidth", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_glUniformMatrix3fv", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_SecTrustCopyPublicKey", referenced from:

      l763 in GoogleMobileAds(flat-x86_64)

  "_glActiveTexture", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_glEnableVertexAttribArray", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_CVOpenGLESTextureCacheCreateTextureFromImage", referenced from:

      l3814 in GoogleMobileAds(flat-x86_64)

  "_glVertexAttribPointer", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_kEAGLDrawablePropertyRetainedBacking", referenced from:

      l5281 in GoogleMobileAds(flat-x86_64)

  "_glGetShaderiv", referenced from:

      l3450 in GoogleMobileAds(flat-x86_64)

  "_glDrawArrays", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_GLKMatrix4Identity", referenced from:

      l3805 in GoogleMobileAds(flat-x86_64)

      l3816 in GoogleMobileAds(flat-x86_64)

  "_SecTrustCreateWithCertificates", referenced from:

      l763 in GoogleMobileAds(flat-x86_64)

  "_SecTrustEvaluate", referenced from:

      l763 in GoogleMobileAds(flat-x86_64)

  "_CFHostStartInfoResolution", referenced from:

      l3469 in GoogleMobileAds(flat-x86_64)

  "_glDetachShader", referenced from:

      _GADGLCreateProgram in GoogleMobileAds(flat-x86_64)

  "_glAttachShader", referenced from:

      _GADGLCreateProgram in GoogleMobileAds(flat-x86_64)

  "_OBJC_CLASS_$_CAMediaTimingFunction", referenced from:

      objc-class-ref in GoogleMobileAds(flat-x86_64)

  "_glCompileShader", referenced from:

      l3450 in GoogleMobileAds(flat-x86_64)

  "_glCreateProgram", referenced from:

      _GADGLCreateProgram in GoogleMobileAds(flat-x86_64)

  "_glDeleteShader", referenced from:

      _GADGLCreateProgram in GoogleMobileAds(flat-x86_64)

  "_glLinkProgram", referenced from:

      _GADGLCreateProgram in GoogleMobileAds(flat-x86_64)

  "_glUniform1i", referenced from:

      l3813 in GoogleMobileAds(flat-x86_64)

  "_CVPixelBufferGetHeight", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_glGetProgramiv", referenced from:

      _GADGLCreateProgram in GoogleMobileAds(flat-x86_64)

  "_SecKeyRawVerify", referenced from:

      l765 in GoogleMobileAds(flat-x86_64)

  "_glDeleteProgram", referenced from:

      _GADGLCreateProgram in GoogleMobileAds(flat-x86_64)

      l3815 in GoogleMobileAds(flat-x86_64)

  "_glDisable", referenced from:

      l3813 in GoogleMobileAds(flat-x86_64)

  "_CFHostGetAddressing", referenced from:

      l3469 in GoogleMobileAds(flat-x86_64)

  "_kCATransitionPush", referenced from:

      l1504 in GoogleMobileAds(flat-x86_64)

  "_glTexParameteri", referenced from:

      l3814 in GoogleMobileAds(flat-x86_64)

  "_kCAMediaTimingFunctionEaseInEaseOut", referenced from:

      l1504 in GoogleMobileAds(flat-x86_64)

  "_glCreateShader", referenced from:

      _GADGLCreateProgram in GoogleMobileAds(flat-x86_64)

  "_CVOpenGLESTextureCacheCreate", referenced from:

      l3813 in GoogleMobileAds(flat-x86_64)

  "_CVBufferGetAttachment", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_glShaderSource", referenced from:

      l3450 in GoogleMobileAds(flat-x86_64)

  "_kEAGLDrawablePropertyColorFormat", referenced from:

      l5281 in GoogleMobileAds(flat-x86_64)

  "_CFHostCreateWithName", referenced from:

      l3469 in GoogleMobileAds(flat-x86_64)

  "_SecCertificateCreateWithData", referenced from:

      l763 in GoogleMobileAds(flat-x86_64)

  "_glBindTexture", referenced from:

      l3814 in GoogleMobileAds(flat-x86_64)

  "_glUniformMatrix4fv", referenced from:

      l3811 in GoogleMobileAds(flat-x86_64)

  "_glClear", referenced from:

      l5307 in GoogleMobileAds(flat-x86_64)

  "_CACurrentMediaTime", referenced from:

      l288 in GoogleMobileAds(flat-x86_64)

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Deepika Uragayala- MobileAds SDK team

unread,
Oct 5, 2017, 4:16:23 PM10/5/17
to Google Mobile Ads SDK Developers
Hi Adam,

I'm not seeing any error with the latest SDK v7.24, iOS 11 and Xcode 9 and able to build without any issues. This might be due to a different SDK. First check with our sample apps and then let us know. I would also suggest that you see what other framework might be causing this as it is not our SDK here.

Regards,
Deepika Uragayala
Mobile Ads SDK Team

Adam

unread,
Oct 5, 2017, 4:31:17 PM10/5/17
to Google Mobile Ads SDK Developers
The example doesn't compile for me either, I get the error 'Module 'GoogleMobileAds' not found'.  I just downloaded the sdk manually for my project, I'm not using CocoaPods, though I don't think this would make a difference.  It seems like similar issues in the past were fixed by linking missing dependencies, though this is not specified in the documentation: 


I can see adding in the CoreMotion library for example seems to have gotten rid of the CoreMotion link error.

Adam

unread,
Oct 5, 2017, 4:34:41 PM10/5/17
to Google Mobile Ads SDK Developers
Reply all
Reply to author
Forward
0 new messages