Objectmapper: Invalid redeclaration of '<-' error in Xcode 10

Created on 21 Sep 2018  路  11Comments  路  Source: tristanhimmelman/ObjectMapper

Everything was working fine in xcode 9.4. After updating to xcode 10, the below errors started appearing.
screen shot 2018-09-21 at 2 45 24 pm
screen shot 2018-09-21 at 2 46 12 pm

Most helpful comment

@Kanika-Sharma just update to the latest version (this fixed in version 3.3.0)

All 11 comments

@Kanika-Sharma just update to the latest version (this fixed in version 3.3.0)

@Kanika-Sharma just update to the latest version (this fixed in version 3.3.0)

Working fine.... Thanks

Tks.. its working for me also.

@Kanika-Sharma just update to the latest version (this fixed in version 3.3.0)

Working fine.... Thanks

Hi which library you updated to fix this issue

@gcharita is there a fix for Swift 3 version?

@chika-kasymov yes swift 3 is also supported

Yes, it fixed for swift 3.0. Thanks

@Kanika-Sharma just update to the latest version (this fixed in version 3.3.0)

Working fine.... Thanks

Can you say what do I need to update, please be more specific. Ok I think is ObjectMapper.

Hi i am using Xcode 10.1 && swift 3.0 but still i am facing the same error.can you say which library you updated to fix this issue.Thanks in advance.
screen shot 2018-11-13 at 10 45 46 am

Hi i am using Xcode 10.1 && swift 3.0 but still i am facing the same error.can you say which library you updated to fix this issue.Thanks in advance.
screen shot 2018-11-13 at 10 45 46 am

In my case I have updated cocoapods in my system and updated pods in the project

$ [sudo] gem install cocoapods

$ pod install - on projects

@osiellima you need to update ObjectMapper to the latest version.

@rharikrishnan84 @rahul-inspired-iosdeveloper
Please refer to this comment: https://github.com/tristanhimmelman/ObjectMapper/issues/1001#issuecomment-424267483

For everyone who want to make sure that they have the latest version

  • Check if your Podfile.lock have something like this:
- ObjectMapper (3.3.0)
  • If not, update your regular Podfile to have this:
pod 'ObjectMapper', '3.3' 
  • Then run pod repo update
  • And then run pod install
Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhengying picture zhengying  路  4Comments

jperera84 picture jperera84  路  4Comments

borut-t picture borut-t  路  4Comments

maksTheAwesome picture maksTheAwesome  路  4Comments

delbyze picture delbyze  路  3Comments