Search code examples
iosxcodecocoapodsalamofire

AlamofireObjectMapper issues after xcode 8


I'm using AlamofireObjectMapper in my project which uses Swift 2.3. After updating my xcode to version 8 my project won't compile anymore, showing the following issues:

AlamofireObjectMapper issues

I set the "Use Legacy swift Language version" to YES in the project build settings.

This is a part of my podfile:

def default_pods
    pod 'AlamofireObjectMapper', '~> 3.0'
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '2.3'
        end
    end
end

Anyone have an idea how to solve this?


Solution

  • Upgrade Cocoapods to v1.1.0, remove the post install hook from your podfile, and run pod update. You may also need to remove the '~> 3.0' version attribute from the pod.