OGeek|极客世界-中国程序员成长平台

标题: ios - 适用于 iOS 的 Google Cast SDK 2.3.0 不支持 64 位 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 10:49
标题: ios - 适用于 iOS 的 Google Cast SDK 2.3.0 不支持 64 位

好像是 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



Best Answer-推荐答案


如果 -all_load 标志对您不起作用(由于 3rd 方库)

你可以像这样使用 ranlib :

ranlib GoogleCast.framework/Versions/A/GoogleCast

Source : google cast mailing list

关于ios - 适用于 iOS 的 Google Cast SDK 2.3.0 不支持 64 位,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24798718/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4