I'm trying to update a dependency I have in one of my Swift 3 pods. The dependency in question is Socket.IO-Client-Swift
. I want to upgrade it from the Swift 3 version to the latest Swift 4 version.
It works fine in Xcode if I set the "Swift Language Version" for the Socket.IO-Client pod to 4.1. It builds with no issues.
When I try to lint the podspec or push the podspec I get errors because it looks like it's trying to compile Socket.IO using Swift 3.
ERROR | [iOS] xcodebuild: Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClient.swift:111:39: error: cannot call value of non-function type 'Bool'
...
ERROR | [iOS] xcodebuild: Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClient.swift:471:39: error: cannot call value of non-function type 'Bool'
Is there anyway to get cocoapods to compile a dependency (Socket.IO-Client-Swift) using Swift 4 while using Swift 3 for anything else that needs it?