evermeer / EVReflection

Reflection based (Dictionary, CKRecord, NSManagedObject, Realm, JSON and XML) object mapping with extensions for Alamofire and Moya with RxSwift or ReactiveSwift
Other
966 stars 119 forks source link

Update to swift 4.2 #297

Closed codecat15 closed 5 years ago

codecat15 commented 5 years ago

I updated my project from swift 3 to swift 4.2 where we observed the given error

screen shot 2018-11-04 at 11 26 47 am

In my build settings i did add the user defined settings as suggested by apple

SWIFT_ENABLE_BATHC_MODE and set it to NO but even after that i am getting this error, should i use an older version or am i missing a configuration setting here please suggest.

evermeer commented 5 years ago

After converting to 4.2, did you do a 'pod update'?

codecat15 commented 5 years ago

@evermeer I got this error when I tried to upgrade from swift 4 to 4.2, I reverted my pod project back to 4.0 as I was still getting the error after a pod update so I repeat the below steps because for some reason pod update was not working for me.

  1. Delete the pod EVReflection from pod file
  2. Do a pod install
  3. Do a clean build and rebuild the project
  4. Here I get a build success message and after that, I re-add pod EVReflection to my pod file
  5. repeat step no 2

And now the error is now gone, I verified the version of EVReflection and it's showing as 5.8.0 which is the latest version.

codecat15 commented 5 years ago

pod EVReflection

evermeer commented 5 years ago

Good to hear that it's solved.