ios - Unable to locate error: MyViewController class is not key value coding-compliant for the key activity -
well known error, strange case:
terminating app due uncaught exception 'nsunknownkeyexception', reason: '[<phcomposerviewcontroller 0xb65c1e0> setvalue:forundefinedkey:]: class not key value coding-compliant key activity.'
i understand means outlet referencing controller's property, property missing. deleted property few commits ago outlet in storyboard. exists somewhere don't know. of cause, tried "clean", re-clone repo, reboot, etc...
i tried global text search "activity" (in storyboard xmls , everywhere in project dir), no result.
this problem somehow related internationalization support, added. have 3 sets: base, russian, english. problem disappears when convert english "strings" "interface"...
also, error raises when launch on old installation (current version appstore). current available version doesn't have i18 support. point think more related internal language.
i have walk-around "string" -> "interface", of cause string preferred way go.
usually when see exception in relation uiviewcontroller
has misconfigured xib file implied. go on outlets , make sure connected , not assigned doesn't exist.
i suggest right click on "file's owner" , see no exclamation marks there.
in case we're talking storyboard file, right click controller instance list on left, not file's owner:
Comments
Post a Comment