简体   繁体   English

Google cast SDK 在 Apple M1 Pro 芯片组中不起作用

[英]Google cast SDK not working in Apple M1 Pro chipset

在此处输入图像描述

I am trying to integrate Google cast SDK but not working in Apple M1 Pro chipset.我正在尝试集成 Google cast SDK 但不适用于 Apple M1 Pro 芯片组。

pod 'google-cast-sdk' pod '谷歌-cast-sdk'

I am tried with every possibilities but not worked well and it's throwing as error like attached image.我尝试了各种可能性,但效果不佳,并且像附加图像一样抛出错误。 Any idea to get rid of this error.摆脱这个错误的任何想法。

Any help more appreciated.任何帮助更感激。

Thanks in Advance提前致谢

The Google Cast SDK you integrate with CocoaPods contains a binary framework which currently does not contain the arm64 simulator binaries, thus the linker error you experience when building the project for the arm64 simulator.您与 CocoaPods 集成的 Google Cast SDK 包含一个二进制框架,该框架当前不包含 arm64 模拟器二进制文件,因此您在为 arm 模拟器构建项目时遇到 linker 错误。

arm64 simulator binaries are namely different from arm64 device binaries, as this excellent article series explains in great detail. arm64 模拟器二进制文件与 arm64 设备二进制文件不同,正如这个优秀的文章系列非常详细地解释的那样。 An XCFramework is needed instead so that both the arm64 device and simulator slices can coexist in the same package, thus addressing all possible build scenarios.相反,需要一个 XCFramework,以便 arm64 设备和模拟器切片可以在同一个 package 中共存,从而解决所有可能的构建场景。

Google engineers are currently working on this known issue and a proper XCFramework should be delivered early January 2022 for version 4.7 of the Google Cast SDK. Google 工程师目前正在解决这个已知问题,并且应该在 2022 年 1 月上旬为 Google Cast SDK 的 4.7 版交付适当的 XCFramework。 Though this is not mentioned explicitly I hope they will update the pod accordingly at the same time.虽然没有明确提到这一点,但我希望他们会同时相应地更新 pod。

At the time of this writing (early January 2022) this XCFramework should be around the corner, so I would recommend working with the x64 simulator or an arm64 device in the meantime if you can.在撰写本文时(2022 年 1 月上旬),这个 XCFramework 应该是指日可待,所以如果可以的话,我建议同时使用 x64 模拟器或 arm64 设备。

If you cannot afford this compromise you can transform arm64 device binaries into arm64 simulator binaries.如果您无法承受这种妥协,您可以将 arm64 设备二进制文件转换为 arm64 模拟器二进制文件。 The article series listed above describes how this can be achived both for static as well as dynamic binaries, as Google Cast provides its SDKin both flavors .上面列出的文章系列描述了如何为static以及动态二进制文件实现这一点,因为 Google Cast 提供了两种风格的 SDK。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Apple Silicon('M1')上构建 Google Analytics SDK,使其在 Xcode 模拟器中运行? - How can I build the Google Analytics SDK on Apple Silicon ('M1') so it runs in the Xcode Simulator? 复制/粘贴在 XCode 13 模拟器与 M1 Macbook Pro 中不起作用 - Copy/Paste not working in XCode 13 Simulators with M1 Macbook Pro 注册期间在 Macbook Pro 2020 M1 上未检测到 iOS 的 Apple Configurator - Apple Configurator for iOS not detected on Macbook Pro 2020 M1 during Enrollment 如果不使用 rosseta,我无法使用 Apple Silicon m1 Pro 构建我的应用程序 - I can't build my app with apple silicon m1 pro without using rosseta Flutter:如何在 Apple M1 芯片中安装 Flutter 及其所需的 SDK 元素? - Flutter: How to install Flutter and its required SDK elements in Apple M1 Chip? Dynamics SDK v9.1 - M1 Apple Silicon 支持上的 iOS 模拟器 - Dynamics SDK v9.1 - iOS Simulator on M1 Apple Silicon Support Xcode 12.4 Apple M1 中没有此类模块错误 - No such module error in Xcode 12.4 Apple M1 如何在 Apple Silicon (M1) 上运行 CocoaPods - How to run CocoaPods on Apple Silicon (M1) 有没有办法在 Apple Silicon M1 上运行 Firebase? - Is there a way to run Firebase on Apple Silicon M1? iPhone 模拟器的 Apple M1 问题 - Apple M1 issue with iPhone simulator
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM