Google Cast SDK 2.3.0 for iOS不支持64位

看起来iOS的Google Cast SDK的2.3.0版本停止了对arm64架构的支持(它确实支持x86_64 ,使它在64位模拟器中工作)

  λ: cd GoogleCast.framework λ: file GoogleCast GoogleCast: Mach-O universal binary with 5 architectures GoogleCast (for architecture cputype (16777228) cpusubtype (0)): current ar archive GoogleCast (for architecture armv7): current ar archive random library GoogleCast (for architecture armv7s): current ar archive random library GoogleCast (for architecture i386): current ar archive random library GoogleCast (for architecture x86_64): current ar archive random library 

因此,在构build物理设备时出现此错误:

 ld: archive has no table of contents file '/Users/****/Frameworks/GoogleCast.framework/GoogleCast' for architecture arm64 

我提出了这个问题https://code.google.com/p/google-cast-sdk/issues/detail?id=324&can=1&q=arm64

在其他链接标志中添加-all_load使得它与arm64一起工作,但我仍然收到关于缺less矮人的警告:

“警告:(arm64)/Users/marksp/Documents/src/tvmp-iview-ios/Pods/google-cast-sdk/GoogleCastFramework-2.3.0-Release/GoogleCast.framework/GoogleCast(CastProtos.o)object file doesn不包含DWARFdebugging信息“

如果-all_load标志不适用于您(由于第三方库)

你可以像这样使用ranlib

ranlib GoogleCast.framework/Versions/A/GoogleCast

资料来源:谷歌铸造邮件列表

如果您通过CocoaPods安装2.3.0.1,请将下面的代码插入到Podfile中。

 post_install do |installer| `ranlib Pods/google-cast-sdk/GoogleCastFramework-2.3.0-Release/GoogleCast.framework/Versions/A/GoogleCast` end