【问题标题】:GCKUICastButton not visible in productionGCKUICastButton 在生产中不可见
【发布时间】:2020-02-05 22:15:50
【问题描述】:

我在使用 GCK 时遇到了一些生产问题。在模拟器上一切正常,但是当我在真实设备上构建时,什么都没有。

起初,我以为是签名或功能问题,但我是一名注册开发人员,并且权利文件包含 Google Cast SDK 所需的功能。

我已按照本设置指南的每个步骤进行操作。

https://developers.google.com/cast/docs/ios_sender

记录器已启用,输出如下:

2019-10-08 11:26:38.368932-0400 od-cast-ios[1861:488951] GoogleCast framework version 4.4.1.24
2019-10-08 11:26:39.616730-0400 od-cast-ios[1861:488951] BCOV Identity registered: [BCOVSDKIdentity]; version: [6.4.4.683]
2019-10-08 11:26:39.624111-0400 od-cast-ios[1861:488951] BCOV Identity registered: [BCOVGoogleCastManager]; version: [6.4.5.699]
2019-10-08 11:26:39.650010-0400 od-cast-ios[1861:488951] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: '(null)'
2019-10-08 11:26:39.650410-0400 od-cast-ios[1861:488951] [framework] CoreUI: RunTimeThemeRefForBundleIdentifierAndName() couldn't find Assets.car in bundle with identifier: '(null)'
2019-10-08 11:26:39.794589-0400 od-cast-ios[1861:488951] [TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. Table view: <UITableView: 0x11e0ba000; frame = (0 90; 375 722); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x282866730>; layer = <CALayer: 0x282644dc0>; contentOffset: {0, 0}; contentSize: {375, 836}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <od_cast_ios.EpisodeViewController: 0x11dd03d50>>
2019-10-08 11:26:39.917132-0400 od-cast-ios[1861:488951] [] nehelper sent invalid result code [1] for Wi-Fi information request
CoreData: annotation:  Failed to load optimized model at path '/var/containers/Bundle/Application/E39F738B-E03E-4857-A5B4-28E3F2F3047A/od-cast-ios.app/GoogleCastCoreResources.bundle/CastFrameworkDB.momd/CastFrameworkDB03.omo'

另外,我正在使用 GoogleCast 框架版本 4.4.1.24 并在 iOS 13 上构建。

在模拟器上,一切运行正常,显示投射按钮并发现 Chromecast 设备。

但是当我在我的设备上构建应用程序时,按钮没有被实例化。

如果我找不到解决方案,我可能会在接下来的几个小时内发疯:(

【问题讨论】:

    标签: ios swift chromecast google-cast google-cast-sdk


    【解决方案1】:

    Google 刚刚发布了一个新的 SDK 版本,Cast 按钮消失的问题在那里得到了解决。

    早期版本是:4.5.3,当前版本是:4.6.0

    Cast SDK 4.6.0

    只需从您的终端执行“pod update”,然后运行您的应用程序。

    【讨论】:

      【解决方案2】:

      更新到 Cast SDK 4.4.4 或如果用户未授予位置权限,则可能不会出现投射按钮。必须升级到 Cast SDK 4.4.4 才能确保在 iOS 13 上获得可靠的投射体验。

      更多详情请看这里:https://developers.google.com/cast/docs/ios_sender/ios13_changes

      【讨论】:

        【解决方案3】:

        我使用的是google-cast-no-bluetooth 而不是google-cast-sdk。它现在正在工作。

        【讨论】:

        • 我正在使用 google-cast-no-bluetooth ,在第一次启动时,它显示投射按钮,我点击它,应用程序要求本地网络,我点击“确定”以允许和投射按钮隐藏。怎么办,有什么想法吗?我已经在 plist 中设置了所有内容。
        • 我和@JamshedAlam 遇到了同样的问题。你找到解决办法了吗?
        • @John,还没有。你也可以关注这个。 stackoverflow.com/questions/65896503/…
        • 请关注此错误以获取有关此问题的更多更新。 issuetracker.google.com/178424585
        • @John,检查我的答案,更新新版本。
        猜你喜欢
        • 2018-07-26
        • 2021-03-26
        • 2014-09-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-10-29
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多