{"action":"created","comment":{"url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/comments/36190308","id":36190308,"diff_hunk":"@@ -11,6 +11,27 @@ The Mixpanel library for iOS is an open source project, and we'd love to see you\n Mixpanel supports `Cocoapods` for easy installation.\n To Install, see our **[full documentation »](https://mixpanel.com/help/reference/ios)**\n \n+If you choose to go with this method and want to activate the logging and debugging modes in the SDK\n+(see \"Debugging and logging\" in **[the documentation »](https://mixpanel.com/help/reference/ios)**), you can use a\n+`post_install` hook in your Podfile, like so:\n+\n+```ruby\n+post_install do |installer|\n+    installer.pods_project.targets.each do |target|\n+        target.build_configurations.each do |config|\n+            s = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS']\n+            if s==nil then s = [ '$(inherited)' ] end\n+\n+            if target.name == \"Pods-MyProject-Mixpanel\"\n+                s.push('MIXPANEL_DEBUG=1')\n+                s.push('MIXPANEL_ERROR=1')\n+            end\n+            config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = s\n+        end\n+    end\n+end","path":"README.md","position":null,"original_position":22,"commit_id":"3fabf278c70ba8c9f55b0e58e702a93c16435fc0","original_commit_id":"2b80e379fcd4c6e3412d3f33b4267c331af1a836","user":{"login":"Palleas","id":48797,"avatar_url":"https://avatars.githubusercontent.com/u/48797?v=3","gravatar_id":"","url":"https://api.github.com/users/Palleas","html_url":"https://github.com/Palleas","followers_url":"https://api.github.com/users/Palleas/followers","following_url":"https://api.github.com/users/Palleas/following{/other_user}","gists_url":"https://api.github.com/users/Palleas/gists{/gist_id}","starred_url":"https://api.github.com/users/Palleas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palleas/subscriptions","organizations_url":"https://api.github.com/users/Palleas/orgs","repos_url":"https://api.github.com/users/Palleas/repos","events_url":"https://api.github.com/users/Palleas/events{/privacy}","received_events_url":"https://api.github.com/users/Palleas/received_events","type":"User","site_admin":false},"body":"I trust you on this :stuck_out_tongue: \r\nWhat about @kylef's `s ||= [ '$(inherited)' ]`, that looks nice!","created_at":"2015-08-04T13:58:56Z","updated_at":"2015-08-04T13:58:56Z","html_url":"https://github.com/mixpanel/mixpanel-iphone/pull/310#discussion_r36190308","pull_request_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/310","_links":{"self":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/comments/36190308"},"html":{"href":"https://github.com/mixpanel/mixpanel-iphone/pull/310#discussion_r36190308"},"pull_request":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/310"}}},"pull_request":{"url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/310","id":41570182,"html_url":"https://github.com/mixpanel/mixpanel-iphone/pull/310","diff_url":"https://github.com/mixpanel/mixpanel-iphone/pull/310.diff","patch_url":"https://github.com/mixpanel/mixpanel-iphone/pull/310.patch","issue_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/310","number":310,"state":"open","locked":false,"title":"Add documentation for Cocoapods","user":{"login":"Palleas","id":48797,"avatar_url":"https://avatars.githubusercontent.com/u/48797?v=3","gravatar_id":"","url":"https://api.github.com/users/Palleas","html_url":"https://github.com/Palleas","followers_url":"https://api.github.com/users/Palleas/followers","following_url":"https://api.github.com/users/Palleas/following{/other_user}","gists_url":"https://api.github.com/users/Palleas/gists{/gist_id}","starred_url":"https://api.github.com/users/Palleas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palleas/subscriptions","organizations_url":"https://api.github.com/users/Palleas/orgs","repos_url":"https://api.github.com/users/Palleas/repos","events_url":"https://api.github.com/users/Palleas/events{/privacy}","received_events_url":"https://api.github.com/users/Palleas/received_events","type":"User","site_admin":false},"body":"In case the user of the SDK wants to activate the logging and debugging modes without tweaking the Pod directly and Xcode and loosing his changes for every `pod install`.","created_at":"2015-08-04T13:36:40Z","updated_at":"2015-08-04T13:58:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7294f55f36de5979b0c1ec354d7c85311e0b12e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/310/commits","review_comments_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/310/comments","review_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/310/comments","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/statuses/3fabf278c70ba8c9f55b0e58e702a93c16435fc0","head":{"label":"Palleas:patch-1","ref":"patch-1","sha":"3fabf278c70ba8c9f55b0e58e702a93c16435fc0","user":{"login":"Palleas","id":48797,"avatar_url":"https://avatars.githubusercontent.com/u/48797?v=3","gravatar_id":"","url":"https://api.github.com/users/Palleas","html_url":"https://github.com/Palleas","followers_url":"https://api.github.com/users/Palleas/followers","following_url":"https://api.github.com/users/Palleas/following{/other_user}","gists_url":"https://api.github.com/users/Palleas/gists{/gist_id}","starred_url":"https://api.github.com/users/Palleas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palleas/subscriptions","organizations_url":"https://api.github.com/users/Palleas/orgs","repos_url":"https://api.github.com/users/Palleas/repos","events_url":"https://api.github.com/users/Palleas/events{/privacy}","received_events_url":"https://api.github.com/users/Palleas/received_events","type":"User","site_admin":false},"repo":{"id":40186325,"name":"mixpanel-iphone","full_name":"Palleas/mixpanel-iphone","owner":{"login":"Palleas","id":48797,"avatar_url":"https://avatars.githubusercontent.com/u/48797?v=3","gravatar_id":"","url":"https://api.github.com/users/Palleas","html_url":"https://github.com/Palleas","followers_url":"https://api.github.com/users/Palleas/followers","following_url":"https://api.github.com/users/Palleas/following{/other_user}","gists_url":"https://api.github.com/users/Palleas/gists{/gist_id}","starred_url":"https://api.github.com/users/Palleas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Palleas/subscriptions","organizations_url":"https://api.github.com/users/Palleas/orgs","repos_url":"https://api.github.com/users/Palleas/repos","events_url":"https://api.github.com/users/Palleas/events{/privacy}","received_events_url":"https://api.github.com/users/Palleas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Palleas/mixpanel-iphone","description":"iPhone tracking library for Mixpanel Analytics","fork":true,"url":"https://api.github.com/repos/Palleas/mixpanel-iphone","forks_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/forks","keys_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/teams","hooks_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/hooks","issue_events_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/issues/events{/number}","events_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/events","assignees_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/assignees{/user}","branches_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/branches{/branch}","tags_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/tags","blobs_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/git/refs{/sha}","trees_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/statuses/{sha}","languages_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/languages","stargazers_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/stargazers","contributors_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/contributors","subscribers_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/subscribers","subscription_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/subscription","commits_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/commits{/sha}","git_commits_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/git/commits{/sha}","comments_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/comments{/number}","issue_comment_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/issues/comments{/number}","contents_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/contents/{+path}","compare_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/merges","archive_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/downloads","issues_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/issues{/number}","pulls_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/pulls{/number}","milestones_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/milestones{/number}","notifications_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/labels{/name}","releases_url":"https://api.github.com/repos/Palleas/mixpanel-iphone/releases{/id}","created_at":"2015-08-04T13:27:30Z","updated_at":"2015-08-04T13:27:31Z","pushed_at":"2015-08-04T13:57:16Z","git_url":"git://github.com/Palleas/mixpanel-iphone.git","ssh_url":"git@github.com:Palleas/mixpanel-iphone.git","clone_url":"https://github.com/Palleas/mixpanel-iphone.git","svn_url":"https://github.com/Palleas/mixpanel-iphone","homepage":"http://mixpanel.com","size":7546,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mixpanel:master","ref":"master","sha":"2a8d60c272660b21a3ec203cb8d191aff63d6925","user":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"repo":{"id":775069,"name":"mixpanel-iphone","full_name":"mixpanel/mixpanel-iphone","owner":{"login":"mixpanel","id":63653,"avatar_url":"https://avatars.githubusercontent.com/u/63653?v=3","gravatar_id":"","url":"https://api.github.com/users/mixpanel","html_url":"https://github.com/mixpanel","followers_url":"https://api.github.com/users/mixpanel/followers","following_url":"https://api.github.com/users/mixpanel/following{/other_user}","gists_url":"https://api.github.com/users/mixpanel/gists{/gist_id}","starred_url":"https://api.github.com/users/mixpanel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mixpanel/subscriptions","organizations_url":"https://api.github.com/users/mixpanel/orgs","repos_url":"https://api.github.com/users/mixpanel/repos","events_url":"https://api.github.com/users/mixpanel/events{/privacy}","received_events_url":"https://api.github.com/users/mixpanel/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mixpanel/mixpanel-iphone","description":"iPhone tracking library for Mixpanel Analytics","fork":false,"url":"https://api.github.com/repos/mixpanel/mixpanel-iphone","forks_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/forks","keys_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/teams","hooks_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/hooks","issue_events_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/events{/number}","events_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/events","assignees_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/assignees{/user}","branches_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/branches{/branch}","tags_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/tags","blobs_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/refs{/sha}","trees_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/statuses/{sha}","languages_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/languages","stargazers_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/stargazers","contributors_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/contributors","subscribers_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/subscribers","subscription_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/subscription","commits_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/commits{/sha}","git_commits_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/git/commits{/sha}","comments_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/comments{/number}","issue_comment_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/comments{/number}","contents_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/contents/{+path}","compare_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/merges","archive_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/downloads","issues_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues{/number}","pulls_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls{/number}","milestones_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/milestones{/number}","notifications_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/labels{/name}","releases_url":"https://api.github.com/repos/mixpanel/mixpanel-iphone/releases{/id}","created_at":"2010-07-14T17:48:47Z","updated_at":"2015-08-04T10:19:38Z","pushed_at":"2015-08-04T13:57:17Z","git_url":"git://github.com/mixpanel/mixpanel-iphone.git","ssh_url":"git@github.com:mixpanel/mixpanel-iphone.git","clone_url":"https://github.com/mixpanel/mixpanel-iphone.git","svn_url":"https://github.com/mixpanel/mixpanel-iphone","homepage":"http://mixpanel.com","size":7546,"stargazers_count":343,"watchers_count":343,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":252,"mirror_url":null,"open_issues_count":22,"forks":252,"open_issues":22,"watchers":343,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/310"},"html":{"href":"https://github.com/mixpanel/mixpanel-iphone/pull/310"},"issue":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/310"},"comments":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/issues/310/comments"},"review_comments":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/310/comments"},"review_comment":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/pulls/310/commits"},"statuses":{"href":"https://api.github.com/repos/mixpanel/mixpanel-iphone/statuses/3fabf278c70ba8c9f55b0e58e702a93c16435fc0"}}}}