Search code examples
ios64-bitgoogle-cast

Adding Google Cast SDK to 64-bit build


Trying to build a universal 32/64-bit binary with the Google Cast framework (2.0 from here) produces this warning and several linker errors:

ld: warning: ignoring file [...]GoogleCast.framework/GoogleCast, 
missing required architecture x86_64 in file
[...]GoogleCast.framework/GoogleCast (3 slices)

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_GCKDeviceManager", referenced from:
    objc-class-ref in GoogleCastDeviceController.o
  "_OBJC_CLASS_$_GCKDeviceScanner", referenced from:
    objc-class-ref in GoogleCastDeviceController.o
  "_OBJC_CLASS_$_GCKImage", referenced from:
    objc-class-ref in GoogleCastDeviceController.o
  "_OBJC_CLASS_$_GCKMediaControlChannel", referenced from:
    objc-class-ref in GoogleCastDeviceController.o
  "_OBJC_CLASS_$_GCKMediaInformation", referenced from:
    objc-class-ref in GoogleCastDeviceController.o
  "_OBJC_CLASS_$_GCKMediaMetadata", referenced from:
    objc-class-ref in GoogleCastDeviceController.o
  "_kGCKMetadataKeySubtitle", referenced from: [...]
ld: symbol(s) not found for architecture x86_64

Google was about three months late adding 64-bit support for Analytics, so I'm wondering if they've delayed the release of a 64-bit Cast framework as well.

Has anyone successfully built a 64-bit binary with this framework?


Solution

  • Per the release notes for 2.1.0.529 (released 3/25/2014):

    64-bit builds are now fully supported

    I updated the Google Cast framework in my project and was able to deploy to iPad Air and iPhone 5S.

    The latest framework is available here (direct link).