{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/3484","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/3484/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/3484/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/3484/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/3484","id":100318108,"number":3484,"title":"17738661: xCode6 beta3: Swift compiler does not prohibit usage of non KVC compliant class for NIB file Owner","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/1","html_url":"https://github.com/lionheart/openradar-mirror/milestones/Developer%20Tools","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/1/labels","id":1237415,"number":1,"title":"Developer Tools","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":1118,"closed_issues":0,"state":"open","created_at":"2015-08-03T02:08:29Z","updated_at":"2015-08-11T14:01:43Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-08-11T14:01:43Z","updated_at":"2015-08-11T14:01:43Z","closed_at":null,"body":"#### Description\n\nSummary:\r\nIf you try to specify pure Swift class as NIB file owner you will receive a crash at runtime with error similar to following:\r\n\r\n[NSObject 0x7bfa0cc0 setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myView.\r\n\r\nWhere 'myView' is the name of an outlet that was connected to the owner using IB.\r\n\r\nSteps to Reproduce:\r\n1. Create swift class MyViewOwner\r\n2. Create NIB with single UIView\r\n3. Specify MyViewOwner as owner for the NIB created at step 2\r\n4. Connect the view as outlet to the owner\r\n5. Try to load nib in swift code. Code: NSBundle.mainBundle().loadNibNamed(\"MyView\", owner: myViewOwner, options: nil)\r\n6. Compile (no error or warning about fact that MyViewOwner is non KVC compliant class)\r\n7. Execute code by running the app. (runtime crash)\r\n\r\nExpected Results:\r\nError before compilation stating that: MyViewOwner class is not KVC thus cannot be specified as NIB owner.\r\n\r\nOR\r\n\r\nDoes not allow to set MyViewOwner as NIB owner at all. Like xCode does in case when we specify inappropriate string in class field.\r\n\r\nActual Results:\r\nApp crashed with error similar to:\r\n\r\n[NSObject 0x7bfa0cc0 setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myView.\r\n\r\nCrush happens due to the reason that pure Swift class is not KVC compliant.\r\n\r\nVersion:\r\nxCode Version 6.0 (6A254o)\r\n\r\nConfiguration:\r\nIf we inherit MyViewOwner from NSObject everything is fine because NSObject class is KVC compliant\n\n-\nProduct Version: \nCreated: 2014-07-19T20:13:32.144760\nOriginated: 2014-07-19T00:00:00\nOpen Radar Link: http://www.openradar.me/17738661"}}