{"action":"created","issue":{"url":"https://api.github.com/repos/xcodeswift/xcproj/issues/236","repository_url":"https://api.github.com/repos/xcodeswift/xcproj","labels_url":"https://api.github.com/repos/xcodeswift/xcproj/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/xcodeswift/xcproj/issues/236/comments","events_url":"https://api.github.com/repos/xcodeswift/xcproj/issues/236/events","html_url":"https://github.com/xcodeswift/xcproj/issues/236","id":298106532,"number":236,"title":"Not finding .pbxproj","user":{"login":"Lancelotbronner","id":18574607,"avatar_url":"https://avatars3.githubusercontent.com/u/18574607?v=4","gravatar_id":"","url":"https://api.github.com/users/Lancelotbronner","html_url":"https://github.com/Lancelotbronner","followers_url":"https://api.github.com/users/Lancelotbronner/followers","following_url":"https://api.github.com/users/Lancelotbronner/following{/other_user}","gists_url":"https://api.github.com/users/Lancelotbronner/gists{/gist_id}","starred_url":"https://api.github.com/users/Lancelotbronner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lancelotbronner/subscriptions","organizations_url":"https://api.github.com/users/Lancelotbronner/orgs","repos_url":"https://api.github.com/users/Lancelotbronner/repos","events_url":"https://api.github.com/users/Lancelotbronner/events{/privacy}","received_events_url":"https://api.github.com/users/Lancelotbronner/received_events","type":"User","site_admin":false},"labels":[{"id":834448325,"url":"https://api.github.com/repos/xcodeswift/xcproj/labels/triage","name":"triage","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-18T18:32:27Z","updated_at":"2018-02-18T18:32:30Z","closed_at":null,"author_association":"NONE","body":"## Context 🕵️‍♀️\r\nI am using macOS High Sierra v10.13.3. I implemented xcproj first with cocoapods but there were errors with AEXML's framework so I simply copied all files into a directory in my project.\r\n\r\n## What 🌱\r\nWhen initializing an XCodeProj (exactly like in the example), it returned nil. I checked that the path was right (it was), that the project.pbxproj was there (it was), etc. I debugged the problem all the way there:\r\n\r\nXCodeProj.swift, init(path:), line 21\r\n`let pbxprojPaths = path.glob(\"*.pbxproj\")`\r\nIt returned one path whose url was \"/\".\r\n\r\nSo the initializer left on the line 25, as there was no data to find I guess.\r\n`let pbxProjData = try Data(contentsOf: pbxprojPaths.first!.url)`\r\n\r\nI wasn't sure wether to post the issue in PathKit (since the problem seems to be coming from there `glob` function), so I posted it in the two in case.\r\n\r\n<!-- Love xcproj? Please consider supporting our collective:\r\n👉  https://opencollective.com/xcproj/donate -->"},"comment":{"url":"https://api.github.com/repos/xcodeswift/xcproj/issues/comments/366536542","html_url":"https://github.com/xcodeswift/xcproj/issues/236#issuecomment-366536542","issue_url":"https://api.github.com/repos/xcodeswift/xcproj/issues/236","id":366536542,"user":{"login":"welcome[bot]","id":30606887,"avatar_url":"https://avatars0.githubusercontent.com/in/4141?v=4","gravatar_id":"","url":"https://api.github.com/users/welcome%5Bbot%5D","html_url":"https://github.com/apps/welcome","followers_url":"https://api.github.com/users/welcome%5Bbot%5D/followers","following_url":"https://api.github.com/users/welcome%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/welcome%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/welcome%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welcome%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/welcome%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/welcome%5Bbot%5D/repos","events_url":"https://api.github.com/users/welcome%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/welcome%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-02-18T18:32:30Z","updated_at":"2018-02-18T18:32:30Z","author_association":"NONE","body":"Thanks for opening your first issue here! Be sure to follow the issue template!\n"}}
{"actor":{"display_login":"welcome"}}