{"action":"created","issue":{"url":"https://api.github.com/repos/bang590/JSPatch/issues/76","labels_url":"https://api.github.com/repos/bang590/JSPatch/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/bang590/JSPatch/issues/76/comments","events_url":"https://api.github.com/repos/bang590/JSPatch/issues/76/events","html_url":"https://github.com/bang590/JSPatch/pull/76","id":100177147,"number":76,"title":"forward compatibility and best cocoapods practice","user":{"login":"yirenjun","id":273997,"avatar_url":"https://avatars.githubusercontent.com/u/273997?v=3","gravatar_id":"","url":"https://api.github.com/users/yirenjun","html_url":"https://github.com/yirenjun","followers_url":"https://api.github.com/users/yirenjun/followers","following_url":"https://api.github.com/users/yirenjun/following{/other_user}","gists_url":"https://api.github.com/users/yirenjun/gists{/gist_id}","starred_url":"https://api.github.com/users/yirenjun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yirenjun/subscriptions","organizations_url":"https://api.github.com/users/yirenjun/orgs","repos_url":"https://api.github.com/users/yirenjun/repos","events_url":"https://api.github.com/users/yirenjun/events{/privacy}","received_events_url":"https://api.github.com/users/yirenjun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-10T21:50:26Z","updated_at":"2015-08-11T07:43:43Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bang590/JSPatch/pulls/76","html_url":"https://github.com/bang590/JSPatch/pull/76","diff_url":"https://github.com/bang590/JSPatch/pull/76.diff","patch_url":"https://github.com/bang590/JSPatch/pull/76.patch"},"body":"支持iOS 6支持iOS 6支持iOS 6最近流行重要的事情说三遍\r\n\r\n需要部署在iOS 6的target，应该对JavascriptCore进行weak linking，之后在runtime判断JavascriptCore是否可用（这里用的是![JSContext class]进行判断，在weak linking的前提下不会crash），当然事实上是可用的，因为会链接到私有的JavascriptCore，根据使用Webkit框架的经验，苹果的审核政策可以接受先前兼容\r\n\r\n此外根据stackoverflow上的介绍，还可以通过指定链接标识来不明确链接到JavascriptCore\r\n-Wl,-U,_JSGlobalContextCreate\r\n-Wl,-U,_JSGlobalContextRelease\r\n在App加载时能通过UIKit → WebKit → JavaScriptCore这条依赖路径完成JavascriptCore的链接\r\n\r\n不过我觉得没卵用"},"comment":{"url":"https://api.github.com/repos/bang590/JSPatch/issues/comments/129742752","html_url":"https://github.com/bang590/JSPatch/pull/76#issuecomment-129742752","issue_url":"https://api.github.com/repos/bang590/JSPatch/issues/76","id":129742752,"user":{"login":"jiffes","id":9860298,"avatar_url":"https://avatars.githubusercontent.com/u/9860298?v=3","gravatar_id":"","url":"https://api.github.com/users/jiffes","html_url":"https://github.com/jiffes","followers_url":"https://api.github.com/users/jiffes/followers","following_url":"https://api.github.com/users/jiffes/following{/other_user}","gists_url":"https://api.github.com/users/jiffes/gists{/gist_id}","starred_url":"https://api.github.com/users/jiffes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jiffes/subscriptions","organizations_url":"https://api.github.com/users/jiffes/orgs","repos_url":"https://api.github.com/users/jiffes/repos","events_url":"https://api.github.com/users/jiffes/events{/privacy}","received_events_url":"https://api.github.com/users/jiffes/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T07:43:43Z","updated_at":"2015-08-11T07:43:43Z","body":"iOS6 support needed! "}}