Objectmapper: Invalid Redeclaration Warnings with Swift 4.x & Xcode 9.3

Created on 16 May 2018  路  9Comments  路  Source: tristanhimmelman/ObjectMapper

Hi Team,

I am using Xcode 9.3 and added this lib using pod. When I tried to build, found warnings, PFA error screen shot showing warnings.
Could you please resolve this? Is there any Swift 4.x specific branch is available?
error_objectmapper

Most helpful comment

Is there any timeline to be getting a fix in for this? I would like to be moving forward using Xcode 10 to prep for iOS 12, however, this is making it so I cannot even compile our main app. Thanks in advance!

All 9 comments

Same here looks like this project isn't being maintained anymore.

I've fixed this in our fork, but unfortunately, my change is basically removing a whole support for serialization of implicitly unwrapped members. I think that this is the only possible solution how to fix that warnings. It's quick and dirty change, but we're already going to remove ObjectMapper from our projects, so it doesn't bother us so much.

Thank you, this helps 馃憤

FYI this a compile error in Xcode 10 beta 1 (and it's new build system)

screen shot 2018-06-04 at 21 47 08

I can see a PR pending for the above issue:

976

Is there any timeline to be getting a fix in for this? I would like to be moving forward using Xcode 10 to prep for iOS 12, however, this is making it so I cannot even compile our main app. Thanks in advance!

News?

980 fixed this in Xcode 10.

Warnings in Xcode Xcode 9.3 and 9.4 will remain due to the fact that the behavior of IUO is not the same as Xcode 10 and as a result compilation fails in test targets.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liltimtim picture liltimtim  路  3Comments

AashishSapkota picture AashishSapkota  路  3Comments

nashirox picture nashirox  路  4Comments

Dbigshooter picture Dbigshooter  路  4Comments

pcompassion picture pcompassion  路  3Comments