Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCKUIStyle.sharedInstance() crashes app #81

Closed
sky-digital opened this issue Jan 16, 2020 · 8 comments
Closed

GCKUIStyle.sharedInstance() crashes app #81

sky-digital opened this issue Jan 16, 2020 · 8 comments

Comments

@sky-digital
Copy link

sky-digital commented Jan 16, 2020

When calling GCKUIStyle.sharedInstance() the app crashes with the following message:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: playImage)'

I'm using Xcode 11.3 and SDK version 4.4.4.

Does anyone know how to solve?

@jtromo
Copy link
Contributor

jtromo commented Jan 16, 2020

@dogo
Copy link

dogo commented Jan 20, 2020

Could be related to #72 ?

@majeedyaseen
Copy link

majeedyaseen commented Feb 7, 2020

I am facing the same issue as my project is crashing on launch with the same exception on ios13. However if I run the same project on iOS 13 below versions it runs fine. Anybody got any solution for this. My current google-cast-sdk version is 4.3.3.

@jtromo

@travisbader
Copy link

Any update on this issue? I am facing the same issue and am on the latest version of the Cast SDK

@travisbader
Copy link

@jtromo
Copy link
Contributor

jtromo commented Apr 30, 2020

For any issues unrelated to the sample, please file an issue with the SDK so it can get the proper attention and include details to reproduce: https://developers.google.com/cast/support#report_issues

That said, I tried adding the following lines here and did not experience a crash on iOS 13 with the latest SDK.

// Get the shared instance of GCKUIStyle
let castStyle = GCKUIStyle.sharedInstance()
// Set the property of the desired cast widget.
castStyle.castViews.mediaControl.miniController.bodyTextColor = UIColor.red
// Refresh all currently visible views with the assigned styles.
castStyle.apply()

If you are able to include steps for how to reproduce on the ticket you file that will be extremely helpful.

@jtromo jtromo closed this as completed Apr 30, 2020
@ashnfb
Copy link

ashnfb commented Aug 11, 2020

I have been having this same issue with react-native-google-cast, which is using version 4.3.0 of the googlecast-sdk (hardcoded in the podspec). When I use the non-bluetooth sdk, it uses 4.4.8, which doesn't produce the error.

'react-native-google-cast', :path => '../node_modules/react-native-google-cast/ios', :subspecs => [
    'NoBluetooth'
  ]

@jtromo
Copy link
Contributor

jtromo commented Aug 11, 2020

Please file an issue with https://github.com/react-native-google-cast/react-native-google-cast as react-native-google-cast is not officially supported and 4.3.0 is very old.

If you find an SDK issue, please file an issue with the SDK so it can get the proper attention and include details to reproduce: https://developers.google.com/cast/support#report_issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants