{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/1925","labels_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1925/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1925/comments","events_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1925/events","html_url":"https://github.com/realm/realm-cocoa/issues/1925","id":75747329,"number":1925,"title":"[RealmSwift] Errors in Swift->ObjC Generated Header for Realm Objects with List<> Properties","user":{"login":"leegoodrich","id":325688,"avatar_url":"https://avatars.githubusercontent.com/u/325688?v=3","gravatar_id":"","url":"https://api.github.com/users/leegoodrich","html_url":"https://github.com/leegoodrich","followers_url":"https://api.github.com/users/leegoodrich/followers","following_url":"https://api.github.com/users/leegoodrich/following{/other_user}","gists_url":"https://api.github.com/users/leegoodrich/gists{/gist_id}","starred_url":"https://api.github.com/users/leegoodrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leegoodrich/subscriptions","organizations_url":"https://api.github.com/users/leegoodrich/orgs","repos_url":"https://api.github.com/users/leegoodrich/repos","events_url":"https://api.github.com/users/leegoodrich/events{/privacy}","received_events_url":"https://api.github.com/users/leegoodrich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-05-12T21:34:32Z","updated_at":"2015-08-15T18:26:59Z","closed_at":"2015-05-12T23:17:32Z","body":"RealmSwift v0.92.2\r\nXCode 6.3.1\r\n\r\nIn a project with mixed Swift / Objective-C code, target fails to compile due to missing type information for List<> properties in the generated Swift->ObjC header. Here is a snippet of the generated ObjC interface for one of my affected classes:\r\n\r\n```objective-c\r\n@interface RealmPlaylist : Object\r\n@property (nonatomic, copy) NSString * __nonnull name;\r\n@property (nonatomic) NSInteger id;\r\n@property (nonatomic, readonly) /* List<RealmTrack> */ tracks;\r\n@end\r\n```\r\n\r\nThe compiler complains that tracks \"requires a specifier or qualifier\", which definitely seems to be the case.\r\n\r\nThe docs say to use the Realm-ObjectiveC framework for projects with mixed codebases, so I'll migrate over to that one and have to unfortunately give up all the nice Swift-ness. I initially assumed I could get away using RealmSwift as my Objective-C code does not use any of the Realm objects, but they do use other Swift objects defined in the generated header.\r\n\r\nGenerally, XCode simply forgoes generating interfaces exposing Swift features that are incapable of providing an Objective-C equivalent, such as generics and Swift-style enums. Is that not possible here?"},"comment":{"url":"https://api.github.com/repos/realm/realm-cocoa/issues/comments/131420995","html_url":"https://github.com/realm/realm-cocoa/issues/1925#issuecomment-131420995","issue_url":"https://api.github.com/repos/realm/realm-cocoa/issues/1925","id":131420995,"user":{"login":"shahankit","id":4739743,"avatar_url":"https://avatars.githubusercontent.com/u/4739743?v=3","gravatar_id":"","url":"https://api.github.com/users/shahankit","html_url":"https://github.com/shahankit","followers_url":"https://api.github.com/users/shahankit/followers","following_url":"https://api.github.com/users/shahankit/following{/other_user}","gists_url":"https://api.github.com/users/shahankit/gists{/gist_id}","starred_url":"https://api.github.com/users/shahankit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahankit/subscriptions","organizations_url":"https://api.github.com/users/shahankit/orgs","repos_url":"https://api.github.com/users/shahankit/repos","events_url":"https://api.github.com/users/shahankit/events{/privacy}","received_events_url":"https://api.github.com/users/shahankit/received_events","type":"User","site_admin":false},"created_at":"2015-08-15T18:26:59Z","updated_at":"2015-08-15T18:26:59Z","body":"Ok so, List no longer are required to be declared as private in Xcode 7."}}