Search code examples
iosgoogle-cast

Crash on [__NSCFConstantString gck_matchesPattern:]


When you are creating a Chromecast iOS app by yourself, not copied from cast-ios-sample, it will crash because the framework raises an uncaught exception.

[__NSCFConstantString gck_matchesPattern:]: unrecognized selector sent to instance 0x1c99c

Solution

  • Add "-ObjC" to "Other Linker Flags" in the Build Settings for your target app in Xcode, as the sample app does.