{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13076","repository_url":"https://api.github.com/repos/lionheart/openradar-mirror","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13076/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13076/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/13076/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/13076","id":148870778,"number":13076,"title":"15385838: Clang needs to be able to report un-protected \"new\" APIs","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/reproducible:always","name":"reproducible:always","color":"5319e7"},{"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/16","html_url":"https://github.com/lionheart/openradar-mirror/milestones/Xcode","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/16/labels","id":1237430,"number":16,"title":"Xcode","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":352,"closed_issues":0,"state":"open","created_at":"2015-08-03T02:08:42Z","updated_at":"2016-04-16T17:01:33Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-04-16T17:01:33Z","updated_at":"2016-04-16T17:01:33Z","closed_at":null,"body":"#### Description\n\nSummary:\r\nUsing the Xcode \"Analyze\" menu option, we should be able to see APIs called from our code that aren't somehow protected against being called on older OSes, e.g. calling a handler that was introduced in a newer API where we aren't checking for the existence of that handler in an older OS.\r\n\r\nFor example, calling -[MPVolumeView setRouteButtonImage:forState:] on iOS 5.1 without first checking whether the MPVolumeView responds to the selector.\r\n\r\nSteps to Reproduce:\r\n\r\n\r\nExpected Results:\r\nAnalyzer warning something like, \"Calling new API 'setRouteButtonImage:forState:' without first checking for support on pre-iOS 6 devices\"\r\n\r\nActual Results:\r\n\r\n\r\nVersion:\r\nProductName:\tMac OS X\r\nProductVersion:\t10.9\r\nBuildVersion:\t13A603\r\nXcode 5.0.1\r\nBuild version 5A2053\n\n-\nProduct Version: 5.0.1\nCreated: 2013-11-04T20:42:17.641674\nOriginated: 2013-11-04T00:00:00\nOpen Radar Link: http://www.openradar.me/15385838"}}