How to handle Swift version with Cocoapods
Issue #80
Today I was migrating Imaginary to Swift 4. But I get
1 | - ERROR | [OSX] xcodebuild: Returned an unsuccessful exit code. |
The project is configured to use Swift 4
and its dependency Cache correctly uses .png
and .jpeg
https://github.com/hyperoslo/Cache/blob/master/Source/Mac/NSImage%2BExtensions.swift
Why is that 🤔
It turns out that the .swift-version
is still showing 3.0
. Change it to 4.0
fixes the issue. The .swift-version
is a hint to specify which Swift version should be used for a pod https://github.com/CocoaPods/CocoaPods/pull/5841