ARCではstructのなかに、NSString*とか、Objective-Cのメンバを入れると
ARC forbids Objective-C objects in structs or unions
と怒られます。
mogeneratorで出力する際に、 --template-var arc=true
をつけると、
extern const struct HogeAttributes {
__unsafe_unretained NSString *created_at;
__unsafe_unretained NSString *identifier;
__unsafe_unretained NSString *timeline_id;
__unsafe_unretained NSString *updated_at;
__unsafe_unretained NSString *user_id;
} HogeAttributes;
などと出力してくれるようです。
- 参考