-
Notifications
You must be signed in to change notification settings - Fork 37
Swift 3 #14
Comments
Hi Piyush, This looks like an issue with your project. Please go to the project's build settings and set the "Use Legacy Swift Language Version" setting to "No". If you would like to use Swift 3 with this library, please don't convert the code yourself as it was not a trivial migration. Version 2.0.1 of the library is Swift 3 and available through CocoaPods, please use this version and you shouldn't have any trouble. Let me know if you have any more problems! Thanks, |
Hello, I have changed the project settings as you said but issue is still there. Thanks, |
Ah, strange. Could you describe your project setup a bit please? Are you using CocoaPods? If you are, is this error in the "Pods" project or your main project? |
Ah I see, thanks for the screenshots. I've integrated the library using CocoaPods (as seen in the example project) so it does work. Could you tell me which version of CocoaPods you're using please? I know there are issues with Xcode 8 on older versions. Just run |
Yeah, AvatarImageView has "Use Legacy Swift Language Version" as Unspecified. Now it's working. |
Same problem here, by default the pod was installed with "Unspecified" legacy setting. I think it should be fixed in the pod specification somewhere |
A workaround can be specified in the Podfile, can't do anything in the podspec unfortunately :( |
Hello Ayush,
I have updated my code to swift 3.0 but when I try to run, it gives me an legacy swift version error.
Later when I convert the dependency code, it gives me so many errors. Could you please check if the it is working or not?
The text was updated successfully, but these errors were encountered: