GCKUICastButton не виден в производстве - PullRequest
0 голосов
/ 08 октября 2019

У меня возникли некоторые производственные проблемы с 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.

Но когда я создаю приложение на своем устройстве, кнопка не создается.

Я могу сойти с ума в ближайшие несколько часов, если не смогу найтирешение: (

Ответы [ 2 ]

1 голос
/ 08 октября 2019

Обновление до Cast SDK 4.4.4 или кнопка приведения могут не отображаться, если пользователь не предоставляет разрешения на определение местоположения. Обновление до Cast SDK 4.4.4 необходимо для обеспечения надежного литья на iOS 13.

Для получения более подробной информации см. Это: https://developers.google.com/cast/docs/ios_sender/ios13_changes

0 голосов
/ 08 октября 2019

Я использовал google-cast-no-bluetooth, а не google-cast-sdk. Сейчас работает.

...