{"action":"created","comment":{"url":"https://api.github.com/repos/imobile3/cassowary/pulls/comments/24929922","id":24929922,"diff_hunk":"@@ -399,6 +402,23 @@ private function parseiOSOutput($test_results) {\n         return $result_array;\n     }\n \n+\t// Retrieve Args from the xctool-args file\n+\tprivate function xcodebuild_args() {\n+\t\t$xctoolargs_path = $this->projectRoot . \"/.xctool-args\";","path":"libcassowary/src/unit/MobileUnitTestEngine.php","position":26,"original_position":26,"commit_id":"d865180de17a637d2000998e3c9130b150287531","original_commit_id":"d865180de17a637d2000998e3c9130b150287531","user":{"login":"mbishopim3","id":1047258,"avatar_url":"https://avatars.githubusercontent.com/u/1047258?v=3","gravatar_id":"","url":"https://api.github.com/users/mbishopim3","html_url":"https://github.com/mbishopim3","followers_url":"https://api.github.com/users/mbishopim3/followers","following_url":"https://api.github.com/users/mbishopim3/following{/other_user}","gists_url":"https://api.github.com/users/mbishopim3/gists{/gist_id}","starred_url":"https://api.github.com/users/mbishopim3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbishopim3/subscriptions","organizations_url":"https://api.github.com/users/mbishopim3/orgs","repos_url":"https://api.github.com/users/mbishopim3/repos","events_url":"https://api.github.com/users/mbishopim3/events{/privacy}","received_events_url":"https://api.github.com/users/mbishopim3/received_events","type":"User","site_admin":false},"body":"This appears to be a required file which isn't always true either. Needs to have some fallback support.","created_at":"2015-02-18T19:04:33Z","updated_at":"2015-02-18T19:04:33Z","html_url":"https://github.com/imobile3/cassowary/pull/5#discussion_r24929922","pull_request_url":"https://api.github.com/repos/imobile3/cassowary/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/imobile3/cassowary/pulls/comments/24929922"},"html":{"href":"https://github.com/imobile3/cassowary/pull/5#discussion_r24929922"},"pull_request":{"href":"https://api.github.com/repos/imobile3/cassowary/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/imobile3/cassowary/pulls/5","id":29544464,"html_url":"https://github.com/imobile3/cassowary/pull/5","diff_url":"https://github.com/imobile3/cassowary/pull/5.diff","patch_url":"https://github.com/imobile3/cassowary/pull/5.patch","issue_url":"https://api.github.com/repos/imobile3/cassowary/issues/5","number":5,"state":"open","locked":false,"title":"Update xcodebuild -showBuildSettings step to derive the build directory using xctool-args","user":{"login":"paulstringer","id":4324816,"avatar_url":"https://avatars.githubusercontent.com/u/4324816?v=3","gravatar_id":"","url":"https://api.github.com/users/paulstringer","html_url":"https://github.com/paulstringer","followers_url":"https://api.github.com/users/paulstringer/followers","following_url":"https://api.github.com/users/paulstringer/following{/other_user}","gists_url":"https://api.github.com/users/paulstringer/gists{/gist_id}","starred_url":"https://api.github.com/users/paulstringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulstringer/subscriptions","organizations_url":"https://api.github.com/users/paulstringer/orgs","repos_url":"https://api.github.com/users/paulstringer/repos","events_url":"https://api.github.com/users/paulstringer/events{/privacy}","received_events_url":"https://api.github.com/users/paulstringer/received_events","type":"User","site_admin":false},"body":"Under certain xctool-args constructs it was possible that when using showBuildSettings a different build directory would be returned to the one where the results of xctool test run were. E.g. using -destination in xctool-args would result in a different DerivedData build folder. This would mean when running 'arc unit' this would manifest itself as the error \"Directory does not exist\".\r\n\r\nThe fix here is to parse the args from .xctool-args and supply these to xcodebuild showBuildSettings to resolve the differences in DerivedData build folders. To make a non breaking change but to support xctool-arg configurations that include -destination or -arch (e.g. for selecting and iPad for Unit Tests), it conditionally only adds the -arch i386 if both these two flags are missing from xctool-args.\r\n","created_at":"2015-02-18T17:22:23Z","updated_at":"2015-02-18T19:04:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5fb9280c80e95c4c08cd5d2ced3e14f1f2c0823e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/imobile3/cassowary/pulls/5/commits","review_comments_url":"https://api.github.com/repos/imobile3/cassowary/pulls/5/comments","review_comment_url":"https://api.github.com/repos/imobile3/cassowary/pulls/comments/{number}","comments_url":"https://api.github.com/repos/imobile3/cassowary/issues/5/comments","statuses_url":"https://api.github.com/repos/imobile3/cassowary/statuses/d865180de17a637d2000998e3c9130b150287531","head":{"label":"paulstringer:OCLint-Unit-Test-Fix-Missing-Build-Directory-xctool","ref":"OCLint-Unit-Test-Fix-Missing-Build-Directory-xctool","sha":"d865180de17a637d2000998e3c9130b150287531","user":{"login":"paulstringer","id":4324816,"avatar_url":"https://avatars.githubusercontent.com/u/4324816?v=3","gravatar_id":"","url":"https://api.github.com/users/paulstringer","html_url":"https://github.com/paulstringer","followers_url":"https://api.github.com/users/paulstringer/followers","following_url":"https://api.github.com/users/paulstringer/following{/other_user}","gists_url":"https://api.github.com/users/paulstringer/gists{/gist_id}","starred_url":"https://api.github.com/users/paulstringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulstringer/subscriptions","organizations_url":"https://api.github.com/users/paulstringer/orgs","repos_url":"https://api.github.com/users/paulstringer/repos","events_url":"https://api.github.com/users/paulstringer/events{/privacy}","received_events_url":"https://api.github.com/users/paulstringer/received_events","type":"User","site_admin":false},"repo":{"id":30885442,"name":"cassowary","full_name":"paulstringer/cassowary","owner":{"login":"paulstringer","id":4324816,"avatar_url":"https://avatars.githubusercontent.com/u/4324816?v=3","gravatar_id":"","url":"https://api.github.com/users/paulstringer","html_url":"https://github.com/paulstringer","followers_url":"https://api.github.com/users/paulstringer/followers","following_url":"https://api.github.com/users/paulstringer/following{/other_user}","gists_url":"https://api.github.com/users/paulstringer/gists{/gist_id}","starred_url":"https://api.github.com/users/paulstringer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulstringer/subscriptions","organizations_url":"https://api.github.com/users/paulstringer/orgs","repos_url":"https://api.github.com/users/paulstringer/repos","events_url":"https://api.github.com/users/paulstringer/events{/privacy}","received_events_url":"https://api.github.com/users/paulstringer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulstringer/cassowary","description":"Helpers and continuous integration tools for mobile development.","fork":true,"url":"https://api.github.com/repos/paulstringer/cassowary","forks_url":"https://api.github.com/repos/paulstringer/cassowary/forks","keys_url":"https://api.github.com/repos/paulstringer/cassowary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulstringer/cassowary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulstringer/cassowary/teams","hooks_url":"https://api.github.com/repos/paulstringer/cassowary/hooks","issue_events_url":"https://api.github.com/repos/paulstringer/cassowary/issues/events{/number}","events_url":"https://api.github.com/repos/paulstringer/cassowary/events","assignees_url":"https://api.github.com/repos/paulstringer/cassowary/assignees{/user}","branches_url":"https://api.github.com/repos/paulstringer/cassowary/branches{/branch}","tags_url":"https://api.github.com/repos/paulstringer/cassowary/tags","blobs_url":"https://api.github.com/repos/paulstringer/cassowary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulstringer/cassowary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulstringer/cassowary/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulstringer/cassowary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulstringer/cassowary/statuses/{sha}","languages_url":"https://api.github.com/repos/paulstringer/cassowary/languages","stargazers_url":"https://api.github.com/repos/paulstringer/cassowary/stargazers","contributors_url":"https://api.github.com/repos/paulstringer/cassowary/contributors","subscribers_url":"https://api.github.com/repos/paulstringer/cassowary/subscribers","subscription_url":"https://api.github.com/repos/paulstringer/cassowary/subscription","commits_url":"https://api.github.com/repos/paulstringer/cassowary/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulstringer/cassowary/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulstringer/cassowary/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulstringer/cassowary/issues/comments/{number}","contents_url":"https://api.github.com/repos/paulstringer/cassowary/contents/{+path}","compare_url":"https://api.github.com/repos/paulstringer/cassowary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulstringer/cassowary/merges","archive_url":"https://api.github.com/repos/paulstringer/cassowary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulstringer/cassowary/downloads","issues_url":"https://api.github.com/repos/paulstringer/cassowary/issues{/number}","pulls_url":"https://api.github.com/repos/paulstringer/cassowary/pulls{/number}","milestones_url":"https://api.github.com/repos/paulstringer/cassowary/milestones{/number}","notifications_url":"https://api.github.com/repos/paulstringer/cassowary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulstringer/cassowary/labels{/name}","releases_url":"https://api.github.com/repos/paulstringer/cassowary/releases{/id}","created_at":"2015-02-16T19:57:16Z","updated_at":"2015-02-18T17:11:31Z","pushed_at":"2015-02-18T17:11:31Z","git_url":"git://github.com/paulstringer/cassowary.git","ssh_url":"git@github.com:paulstringer/cassowary.git","clone_url":"https://github.com/paulstringer/cassowary.git","svn_url":"https://github.com/paulstringer/cassowary","homepage":"","size":480,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"imobile3:master","ref":"master","sha":"6957498117b1aadbf237dd0fa98d11ca3ca03757","user":{"login":"imobile3","id":1047263,"avatar_url":"https://avatars.githubusercontent.com/u/1047263?v=3","gravatar_id":"","url":"https://api.github.com/users/imobile3","html_url":"https://github.com/imobile3","followers_url":"https://api.github.com/users/imobile3/followers","following_url":"https://api.github.com/users/imobile3/following{/other_user}","gists_url":"https://api.github.com/users/imobile3/gists{/gist_id}","starred_url":"https://api.github.com/users/imobile3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobile3/subscriptions","organizations_url":"https://api.github.com/users/imobile3/orgs","repos_url":"https://api.github.com/users/imobile3/repos","events_url":"https://api.github.com/users/imobile3/events{/privacy}","received_events_url":"https://api.github.com/users/imobile3/received_events","type":"Organization","site_admin":false},"repo":{"id":5102181,"name":"cassowary","full_name":"imobile3/cassowary","owner":{"login":"imobile3","id":1047263,"avatar_url":"https://avatars.githubusercontent.com/u/1047263?v=3","gravatar_id":"","url":"https://api.github.com/users/imobile3","html_url":"https://github.com/imobile3","followers_url":"https://api.github.com/users/imobile3/followers","following_url":"https://api.github.com/users/imobile3/following{/other_user}","gists_url":"https://api.github.com/users/imobile3/gists{/gist_id}","starred_url":"https://api.github.com/users/imobile3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobile3/subscriptions","organizations_url":"https://api.github.com/users/imobile3/orgs","repos_url":"https://api.github.com/users/imobile3/repos","events_url":"https://api.github.com/users/imobile3/events{/privacy}","received_events_url":"https://api.github.com/users/imobile3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/imobile3/cassowary","description":"Helpers and continuous integration tools for mobile development.","fork":false,"url":"https://api.github.com/repos/imobile3/cassowary","forks_url":"https://api.github.com/repos/imobile3/cassowary/forks","keys_url":"https://api.github.com/repos/imobile3/cassowary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imobile3/cassowary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imobile3/cassowary/teams","hooks_url":"https://api.github.com/repos/imobile3/cassowary/hooks","issue_events_url":"https://api.github.com/repos/imobile3/cassowary/issues/events{/number}","events_url":"https://api.github.com/repos/imobile3/cassowary/events","assignees_url":"https://api.github.com/repos/imobile3/cassowary/assignees{/user}","branches_url":"https://api.github.com/repos/imobile3/cassowary/branches{/branch}","tags_url":"https://api.github.com/repos/imobile3/cassowary/tags","blobs_url":"https://api.github.com/repos/imobile3/cassowary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imobile3/cassowary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imobile3/cassowary/git/refs{/sha}","trees_url":"https://api.github.com/repos/imobile3/cassowary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imobile3/cassowary/statuses/{sha}","languages_url":"https://api.github.com/repos/imobile3/cassowary/languages","stargazers_url":"https://api.github.com/repos/imobile3/cassowary/stargazers","contributors_url":"https://api.github.com/repos/imobile3/cassowary/contributors","subscribers_url":"https://api.github.com/repos/imobile3/cassowary/subscribers","subscription_url":"https://api.github.com/repos/imobile3/cassowary/subscription","commits_url":"https://api.github.com/repos/imobile3/cassowary/commits{/sha}","git_commits_url":"https://api.github.com/repos/imobile3/cassowary/git/commits{/sha}","comments_url":"https://api.github.com/repos/imobile3/cassowary/comments{/number}","issue_comment_url":"https://api.github.com/repos/imobile3/cassowary/issues/comments/{number}","contents_url":"https://api.github.com/repos/imobile3/cassowary/contents/{+path}","compare_url":"https://api.github.com/repos/imobile3/cassowary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imobile3/cassowary/merges","archive_url":"https://api.github.com/repos/imobile3/cassowary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imobile3/cassowary/downloads","issues_url":"https://api.github.com/repos/imobile3/cassowary/issues{/number}","pulls_url":"https://api.github.com/repos/imobile3/cassowary/pulls{/number}","milestones_url":"https://api.github.com/repos/imobile3/cassowary/milestones{/number}","notifications_url":"https://api.github.com/repos/imobile3/cassowary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imobile3/cassowary/labels{/name}","releases_url":"https://api.github.com/repos/imobile3/cassowary/releases{/id}","created_at":"2012-07-18T21:33:37Z","updated_at":"2015-02-17T13:14:55Z","pushed_at":"2015-02-17T13:14:55Z","git_url":"git://github.com/imobile3/cassowary.git","ssh_url":"git@github.com:imobile3/cassowary.git","clone_url":"https://github.com/imobile3/cassowary.git","svn_url":"https://github.com/imobile3/cassowary","homepage":"","size":805,"stargazers_count":20,"watchers_count":20,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":1,"forks":9,"open_issues":1,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/imobile3/cassowary/pulls/5"},"html":{"href":"https://github.com/imobile3/cassowary/pull/5"},"issue":{"href":"https://api.github.com/repos/imobile3/cassowary/issues/5"},"comments":{"href":"https://api.github.com/repos/imobile3/cassowary/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/imobile3/cassowary/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/imobile3/cassowary/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/imobile3/cassowary/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/imobile3/cassowary/statuses/d865180de17a637d2000998e3c9130b150287531"}}}}