{"action":"created","issue":{"url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/52","labels_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/52/comments","events_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/52/events","html_url":"https://github.com/alexeyxo/protobuf-swift/issues/52","id":65882164,"number":52,"title":"Errors while compiling: does not conform to protocol 'GeneratedMessageProtocol' and is not a member type of ","user":{"login":"turkenh","id":9900707,"avatar_url":"https://avatars.githubusercontent.com/u/9900707?v=3","gravatar_id":"","url":"https://api.github.com/users/turkenh","html_url":"https://github.com/turkenh","followers_url":"https://api.github.com/users/turkenh/followers","following_url":"https://api.github.com/users/turkenh/following{/other_user}","gists_url":"https://api.github.com/users/turkenh/gists{/gist_id}","starred_url":"https://api.github.com/users/turkenh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turkenh/subscriptions","organizations_url":"https://api.github.com/users/turkenh/orgs","repos_url":"https://api.github.com/users/turkenh/repos","events_url":"https://api.github.com/users/turkenh/events{/privacy}","received_events_url":"https://api.github.com/users/turkenh/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/high%20priority","name":"high priority","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"alexeyxo","id":2980636,"avatar_url":"https://avatars.githubusercontent.com/u/2980636?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyxo","html_url":"https://github.com/alexeyxo","followers_url":"https://api.github.com/users/alexeyxo/followers","following_url":"https://api.github.com/users/alexeyxo/following{/other_user}","gists_url":"https://api.github.com/users/alexeyxo/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyxo/subscriptions","organizations_url":"https://api.github.com/users/alexeyxo/orgs","repos_url":"https://api.github.com/users/alexeyxo/repos","events_url":"https://api.github.com/users/alexeyxo/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyxo/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-04-02T08:50:41Z","updated_at":"2015-04-02T13:22:22Z","closed_at":null,"body":"I have several protobuf files which are actively used in a project with some other languages, and now need swift versions. I can build .pb.swift files successfully but when I add them to Xcode, I am receiving tons of bugs mainly composed of:\r\n* Type 1 'Foo' does not conform to protocol 'GeneratedMessageProtocol'\" \r\n* 'Foo' is not a member type of 'Bar'\r\n\r\nI prepared a minimal example showing this issue:\r\n\r\n```\r\nmessage PStatus {\r\n  optional int64 battery_usage = 1;\r\n  optional int64 max_battery_usage = 2;\r\n  message PCardVoltageStatus\r\n  { \r\n    message PCard\r\n    {\r\n      optional string card_name = 1;\r\n      optional string no = 2;\r\n    };\r\n    repeated PCard card = 1;\r\n  };\r\n};\r\n```\r\nIf you build .pb.swift file from this example and add to xcode, you should also get those errors. "},"comment":{"url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/comments/88894463","html_url":"https://github.com/alexeyxo/protobuf-swift/issues/52#issuecomment-88894463","issue_url":"https://api.github.com/repos/alexeyxo/protobuf-swift/issues/52","id":88894463,"user":{"login":"alexeyxo","id":2980636,"avatar_url":"https://avatars.githubusercontent.com/u/2980636?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeyxo","html_url":"https://github.com/alexeyxo","followers_url":"https://api.github.com/users/alexeyxo/followers","following_url":"https://api.github.com/users/alexeyxo/following{/other_user}","gists_url":"https://api.github.com/users/alexeyxo/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeyxo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeyxo/subscriptions","organizations_url":"https://api.github.com/users/alexeyxo/orgs","repos_url":"https://api.github.com/users/alexeyxo/repos","events_url":"https://api.github.com/users/alexeyxo/events{/privacy}","received_events_url":"https://api.github.com/users/alexeyxo/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T13:22:22Z","updated_at":"2015-04-02T13:22:22Z","body":"Try this"}}