似乎2.3.0 version of the Google Cast SDK for iOS停止支持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
因此,构建物理设备时出现此错误:
ld: archive has no table of contents file '/Users/****/Frameworks/GoogleCast.framework/GoogleCast' for architecture arm64
答案 0 :(得分:1)
如果 -all_load 标记不适合您(因为第三方库)
您可以像这样使用ranlib
:
ranlib GoogleCast.framework/Versions/A/GoogleCast
答案 1 :(得分:1)
如果您通过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
答案 2 :(得分:0)
我提出了这个问题https://code.google.com/p/google-cast-sdk/issues/detail?id=324&can=1&q=arm64
在其他链接器标志中添加-all_load使其与arm64一起使用但我仍然收到关于缺少矮人的警告:
“警告:(arm64)/Users/marksp/Documents/src/tvmp-iview-ios/Pods/google-cast-sdk/GoogleCastFramework-2.3.0-Release/GoogleCast.framework/GoogleCast(CastProtos.o)目标文件不包含DWARF调试信息“