-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambiguous use of 'map(JSONObject:)' When migrating to swift 5 and using Xcode 11.2.1 #299
Comments
the same problem |
@tristanhimmelman, do you have plans to resolve these error, or you prefer working on the new version with Alamofire 5? |
Hello @TrabelsiAchraf |
@RomanPodymov Version 5.2 |
@TrabelsiAchraf What about v.5.2.1? |
@RomanPodymov I have used v5.2.1 prior to posting here and I get the same error. |
@TrabelsiAchraf @o15a3d4l11s2 Cannot reproduce the issue on my side. Which Alamofire and ObjectMapper versions are you using? How do you install dependencies? |
@RomanPodymov I use the Alamofire 4.9.1 with AlamofireObjectMapper 5.2.1. And for dependencies I use cocoapods. Not working always. |
Hello @TrabelsiAchraf |
The same. Alamofire 4.9.1, ObjectMapper 3.5.0, AlamofireObjectMapper 5.2.1 |
Hello @TrabelsiAchraf @epitonium @o15a3d4l11s2 @JasonMR7 |
@RomanPodymov , I am using the following:
Error that I get:
from
from I explicitly set the Swift Language Version to v5 for AlamofireObjectMapper pod project. The reason is that I want all projects using Swift 5, so I no longer get the warning that there are projects to migrate to Swift 5. Sorry for the late answer, I was pretty busy last week. Now I am able to answer faster. |
Hello @o15a3d4l11s2 |
This is just a dummy Single View project with the pods pre-installed and Swift version set to 5 in the AlamofireObjectMapper pod. |
Thanks @o15a3d4l11s2 |
https://github.com/o15a3d4l11s2/AlamofireObjectMapper-issue299-demo |
Fixed in #300, for now use |
Hi, I used to pod 'AlamofireObjectMapper', '5.2.1' but I still got an error
|
Hello @dodangduong |
If my project used swift 4.2 it's work but I set my project is swift 5 I still got an error Ambiguous use of 'map(JSONObject:)'. |
Hello @dodangduong |
Hi @dodangduong I tried in my project and it works
|
@thongdn-it, this specific issue is for an older version of AlamofireObjectMapper that is used in conjunction with Alamofire 4. |
I am having the same problem. Did you find a solution? |
Hello @thuythuyntt |
Having the issue bellow when migrating the project to Swift5 and using Xcode 11.2.1 :
Ambiguous use of 'map(JSONObject:)'
The text was updated successfully, but these errors were encountered: