Search code examples
swiftxcode6carthage

ObjectMapper, Carthage, and Xcode 6.3 error


Have a project using Carthage for dependencies. Recently updated to Xcode 6.3 and Swift 1.2. When that happened I also had to update my Cartfile which is now:

github "Alamofire/Alamofire" >= 1.2

github "SwiftyJSON/SwiftyJSON" >= 2.2

github "Hearst-DD/ObjectMapper" ~> 0.9

ObjectMapper does not seem to be able to compile however. When running 'carthage update' I get:

The following build commands failed:
CompileSwift normal x86_64 .../Carthage/Checkouts/ObjectMapper/ObjectMapper/Core/Mapper.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(2 failures)

Looks like the folks working on the ObjectMapper have included changes to support newest Swift/Xcode and don't see others with issues on that end. Would appreciate any insight into this error message :)


Solution

  • Version 0.9 of ObjectMapper didn't include support for the swift 1.2/Xcode 6.3. If you use the latest you should be good to go:

    "Hearst-DD/ObjectMapper" ~> 0.11