evermeer / AlamofireJsonToObjects

An Alamofire extension which converts JSON response data into swift objects using EVReflection
Other
161 stars 28 forks source link

constructing an object of class type 'T' with a metatype value must use a 'required' initializer #6

Closed ghost closed 9 years ago

ghost commented 9 years ago

Hi,

I'm getting the following error when trying to compile AlamofireJsonToObjects on xCode 7.0 in AlamofireJsonToObjects.swift, line 54.

"constructing an object of class type 'T' with a metatype value must use a 'required' initializer"

evermeer commented 9 years ago

Does your object has NSObject or EVObject as its base class?

ghost commented 9 years ago

I haven't defined anything yet. I added it to my Podfile and rebuilt the project after that. I immediately comes with this error. I'm using Xcode 7.

evermeer commented 9 years ago

Argh... I see... Yesterday I removed 2 methods from EVReflecten. I assumed they were not needed. Using EVReflection 2.7 with AlamofireJsonToObjects still works. I will restore EVReflection in a moment. Thanks for reporting this!

evermeer commented 9 years ago

I just pushed a new version of EVReflection to github. Please do a 'pod update' If you find any other issues, then let me know.