Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build for macOSX error: SWIFT_VERSION '3.0' is unsupported #199

Open
donly opened this issue Jun 4, 2020 · 5 comments
Open

Build for macOSX error: SWIFT_VERSION '3.0' is unsupported #199

donly opened this issue Jun 4, 2020 · 5 comments

Comments

@donly
Copy link

donly commented Jun 4, 2020

Build env: Xcode 11.5, macOS Catalina 10.15.5, error details below.
Build with Carthage: carthage update --platform ios,macosx

error: SWIFT_VERSION '3.0' is unsupported, supported versions are: 4.0, 4.2, 5.0. (in target 'SwiftSocket macOS' from project 'SwiftSocket')

When I change Swift Language Version to Swift 4, it can build without error.

it seems relate to this #174

@ghost
Copy link

ghost commented Aug 30, 2020

I faced this issue as well as you. In my case, changing Swift version from 5 to 4 did not clear this error.

@zx5000
Copy link

zx5000 commented Sep 17, 2020

This project is dead now due to Apple's genius move of not-backward-compatible modus? So somewhere in the universe there is an old Xcode waiting to convert your Swift3 to 4. Your mission is to seek the guru who knows where this mythical creature lies.

@AZOM
Copy link

AZOM commented Oct 7, 2020

I fixed this once like this:

` # The easy way to use sockets on Apple platforms - https://github.com/swiftsocket/SwiftSocket

Temporary solution because of using still Swift 3 in pod 2.0.2, see #186

pod 'SwiftSocket', :git => 'https://github.com/swiftsocket/SwiftSocket.git', :branch => 'master'`

@Haibo-Zhou
Copy link

Haibo-Zhou commented Oct 15, 2020

I meet the same issue, changing Swift version from 3.x to 5.x fix it.

iOS 14, Xcode 12.

@antiero
Copy link

antiero commented Feb 11, 2021

@Haibo-Zhou 's steps worked for me too. I had a job finding where Swift version was! It can be found here:

Pods > TARGETS > SwiftSocket > Swift Compiler - Language
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants