{"action":"created","issue":{"url":"https://api.github.com/repos/Ahmed-Ali/Cucumberish/issues/13","repository_url":"https://api.github.com/repos/Ahmed-Ali/Cucumberish","labels_url":"https://api.github.com/repos/Ahmed-Ali/Cucumberish/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Ahmed-Ali/Cucumberish/issues/13/comments","events_url":"https://api.github.com/repos/Ahmed-Ali/Cucumberish/issues/13/events","html_url":"https://github.com/Ahmed-Ali/Cucumberish/issues/13","id":164763669,"number":13,"title":"Reporting: Can't click into the source file from Xcode report navigator when there is a space in app name","user":{"login":"vincentkjj","id":1451117,"avatar_url":"https://avatars.githubusercontent.com/u/1451117?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentkjj","html_url":"https://github.com/vincentkjj","followers_url":"https://api.github.com/users/vincentkjj/followers","following_url":"https://api.github.com/users/vincentkjj/following{/other_user}","gists_url":"https://api.github.com/users/vincentkjj/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentkjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentkjj/subscriptions","organizations_url":"https://api.github.com/users/vincentkjj/orgs","repos_url":"https://api.github.com/users/vincentkjj/repos","events_url":"https://api.github.com/users/vincentkjj/events{/privacy}","received_events_url":"https://api.github.com/users/vincentkjj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-11T05:37:24Z","updated_at":"2016-07-11T16:47:51Z","closed_at":null,"body":"I've discovered with v0.0.7 that we are not able to click into the report navigator after a case fails.\r\nWe have the setting SRC_ROOT=@\\\"$(SRCROOT)\\\"\r\n\r\nOn debugging we've noticed that parseFeatureFiles method of CCIFeaturesManager.m is not handling such case correctly (the original string has URL encoded spaces into %20, but not handled in code)\r\n\r\n```objective-c\r\nNSString * localPath = [[filePath.absoluteString stringByReplacingOccurrencesOfString:[[NSBundle bundleForClass:[self class]] bundlePath] withString:@\"\"] stringByReplacingOccurrencesOfString:@\"file://\" withString:@\"\"];\r\n```\r\n\r\nThis following logic works for us\r\n\r\n```objective-c\r\nNSString * testBundlePath = [[NSBundle bundleForClass:[self class]] bundlePath];\r\nNSString * localPath = [[[filePath.absoluteString stringByRemovingPercentEncoding]\r\n                                     stringByReplacingOccurrencesOfString:testBundlePath withString:@\"\"]\r\n                                    stringByReplacingOccurrencesOfString:@\"file://\" withString:@\"\"];\r\n```\r\n\r\nIf this looks good to you, I'll open a PR."},"comment":{"url":"https://api.github.com/repos/Ahmed-Ali/Cucumberish/issues/comments/231793249","html_url":"https://github.com/Ahmed-Ali/Cucumberish/issues/13#issuecomment-231793249","issue_url":"https://api.github.com/repos/Ahmed-Ali/Cucumberish/issues/13","id":231793249,"user":{"login":"Ahmed-Ali","id":5157350,"avatar_url":"https://avatars.githubusercontent.com/u/5157350?v=3","gravatar_id":"","url":"https://api.github.com/users/Ahmed-Ali","html_url":"https://github.com/Ahmed-Ali","followers_url":"https://api.github.com/users/Ahmed-Ali/followers","following_url":"https://api.github.com/users/Ahmed-Ali/following{/other_user}","gists_url":"https://api.github.com/users/Ahmed-Ali/gists{/gist_id}","starred_url":"https://api.github.com/users/Ahmed-Ali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ahmed-Ali/subscriptions","organizations_url":"https://api.github.com/users/Ahmed-Ali/orgs","repos_url":"https://api.github.com/users/Ahmed-Ali/repos","events_url":"https://api.github.com/users/Ahmed-Ali/events{/privacy}","received_events_url":"https://api.github.com/users/Ahmed-Ali/received_events","type":"User","site_admin":false},"created_at":"2016-07-11T16:47:51Z","updated_at":"2016-07-11T16:47:51Z","body":"Hi @vincentkjj \r\nThanks for your contribution.\r\nThe issue can be reproduced here.\r\nYour fix works as well. Please open a PR.\r\n\r\nThanks"}}
{"actor":{"display_login":"Ahmed-Ali"}}