【问题标题】:Google Cast SDK 2.3.0 for iOS doesn't support 64-bit适用于 iOS 的 Google Cast SDK 2.3.0 不支持 64 位
【发布时间】:2023-03-11 03:10:02
【问题描述】:

似乎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

【问题讨论】:

标签: ios chromecast google-cast


【解决方案1】:

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

在其他链接器标志中添加 -all_load 使其可以与 arm64 一起使用,但我仍然收到有关缺少 dwarf 的警告:

“警告:(arm64)/Users/marksp/Documents/src/tvmp-iview-ios/Pods/google-cast-sdk/GoogleCastFramework-2.3.0-Release/GoogleCast.framework/GoogleCast(CastProtos.o)目标文件不包含 DWARF 调试信息”

【讨论】:

  • 不适合我。这会导致链接上有很多重复的符号。
【解决方案2】:

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

你可以像这样使用ranlib

ranlib GoogleCast.framework/Versions/A/GoogleCast

Source : google cast mailing list

【讨论】:

    【解决方案3】:

    如果您通过 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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-04-14
      • 2018-06-27
      • 2014-03-04
      • 2014-03-02
      • 1970-01-01
      • 2015-06-07
      • 1970-01-01
      相关资源
      最近更新 更多