Got those problem when build in swift 4
how to solve this problem........
if you used xcode 9, please choose convert (swift 4) later, it will help you can build success right now.
For now, you can select Swift 3.2 under Pods -> Targets -> ObjectMapper -> Swift language version option. Or use swift-4 branch
鎬庝箞瑙e喅
Add this to the bottom of your Podfile, until ObjectMapper won't be updated:
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |configuration|
# these libs work now only with Swift3.2 in Xcode9
if ['ObjectMapper'].include? target.name
configuration.build_settings['SWIFT_VERSION'] = "3.2"
end
end
end
end
Please replace file with this file, it will solve all the errors related to that.
Happy coding
Please use the latest release with swift 4 support
Most helpful comment
For now, you can select Swift 3.2 under
Pods->Targets->ObjectMapper->Swift language versionoption. Or use swift-4 branch