mootoh
mootoh

Reputation: 315

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

Upvotes: 0

Views: 268

Answers (2)

Srikanth Pola
Srikanth Pola

Reputation: 21

Add -all_load in Target section --> Other Linker Flag

Upvotes: 2

mootoh
mootoh

Reputation: 315

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

Upvotes: 2

Related Questions