{"action":"created","issue":{"url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/182","repository_url":"https://api.github.com/repos/alexeyxo/protobuf-swift","labels_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/182/comments","events_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/182/events","html_url":"https://github.com/alexeyxo/protobuf-swift/issues/182","id":177995379,"number":182,"title":"misleading README instructions","user":{"login":"carocad","id":10408729,"avatar_url":"https://avatars.githubusercontent.com/u/10408729?v=3","gravatar_id":"","url":"https://api.github.com/users/carocad","html_url":"https://github.com/carocad","followers_url":"https://api.github.com/users/carocad/followers","following_url":"https://api.github.com/users/carocad/following{/other_user}","gists_url":"https://api.github.com/users/carocad/gists{/gist_id}","starred_url":"https://api.github.com/users/carocad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carocad/subscriptions","organizations_url":"https://api.github.com/users/carocad/orgs","repos_url":"https://api.github.com/users/carocad/repos","events_url":"https://api.github.com/users/carocad/events{/privacy}","received_events_url":"https://api.github.com/users/carocad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alexeyxo/protobuf-swift/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/alexeyxo/protobuf-swift/labels/Linux","name":"Linux","color":"0052cc"},{"url":"https://api.github.com/repos/alexeyxo/protobuf-swift/labels/unknown","name":"unknown","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-20T08:21:05Z","updated_at":"2016-09-20T23:28:56Z","closed_at":null,"body":"Hi Alexey,\r\nFirst of all thanks for this wonderful library. I am only starting to get to explore it so I just have a little documentation bug to report.\r\n\r\n#### Description\r\n\r\nIn the README and in the website, it says \"Add ./src/ProtocolBuffers/ProtocolBuffers.xcodeproj in your project.\" which according to the source code, is wrong since there is no such `src` directory.\r\nI am actually not entirely sure if you meant `plugin/PBCompiler/PBCompiler.xcodeproj` or `plugin/ProtocolBuffers/ProtocolBuffers.xcodeproj`.\r\n\r\nI got quite confuse about which one should I add since I am quite a beginner. Another thing that I would like to know is if I can run `protobuf-swift` on a Linux machine or does it have to be a Mac OS?\r\n\r\nThanks in advance\r\n"},"comment":{"url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/comments/248466578","html_url":"https://github.com/alexeyxo/protobuf-swift/issues/182#issuecomment-248466578","issue_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/182","id":248466578,"user":{"login":"jabwd","id":160014,"avatar_url":"https://avatars.githubusercontent.com/u/160014?v=3","gravatar_id":"","url":"https://api.github.com/users/jabwd","html_url":"https://github.com/jabwd","followers_url":"https://api.github.com/users/jabwd/followers","following_url":"https://api.github.com/users/jabwd/following{/other_user}","gists_url":"https://api.github.com/users/jabwd/gists{/gist_id}","starred_url":"https://api.github.com/users/jabwd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabwd/subscriptions","organizations_url":"https://api.github.com/users/jabwd/orgs","repos_url":"https://api.github.com/users/jabwd/repos","events_url":"https://api.github.com/users/jabwd/events{/privacy}","received_events_url":"https://api.github.com/users/jabwd/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T23:28:56Z","updated_at":"2016-09-20T23:28:56Z","body":"This is the work around I used to get it to compile, I have yet to test it against my production code as I need to migrate it to Swift3 as well:\r\n\r\n`let ptr = UnsafeMutablePointer<UInt8>.allocate(capacity: data.count)`\r\n\t`defer { ptr.deinitialize(count: data.count);ptr.deallocate(capacity: data.count) }`\r\n\t`data.copyBytes(to: ptr, count: data.count)`\r\n\t`return ptr`\r\n\r\nProbably a smarter way of doing this, but I call Swift3 the pointer-fuckup since all of this was easier to begin with in Swift2."}}
{"actor":{"display_login":"jabwd"}}