GCKUICastButton在生产中不可见

问题描述 投票:0回答:2

我在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
2个回答
1
投票

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

请查看此以获取更多详细信息:https://developers.google.com/cast/docs/ios_sender/ios13_changes


0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.