Google Cast SDK 2.5.0 missing required architecture arm64

1.2k Views Asked by At

I'm trying to build an iOS app using Google Cast SDK 2.5.0 and am able to build on an iPhone 5 device, but when I try to build on an iPhone 6 device, I get the following build error:

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

I noticed a post about a similar issue here: Google Cast SDK 2.3.0 for iOS doesn't support 64-bit

And so I tried this: ranlib GoogleCast.framework/Versions/A/GoogleCast

But I'm still missing arm 64. Has anyone had a similar issue?

1

There are 1 best solutions below

0
On

As charmingToad mentioned in the comments, I had two versions of the Cast SDK being linked in my application. Removing the older version fixed the linking errors.

If you are using Cocoapods, all you need is a pod update to update your version of the Cast SDK.

If after upgrade Xcode is complaining about linker issues, adding -all_load as a compiler flag worked for me.