Xcode: missing swift version from toolchain - ios

I am trying to use an old swift toolchain in Xcode 14:
But then I am not able to use Swift 3.0 in a new project:
Is this normal? If so, how can I know which old toolchains are compatible with Xcode (different from the toolchain included by default by Xcode)?

Related

Swift 5.3 is not showing in xcode 12 build settings

I am facing weird issue with xcode build setting for swift language version. I am trying to keep latest swift version i.e 5.3 but it is not showing in my xcode build setting. I upgraded xcode to 12.3 as well but no luck. Any suggestion?
XCode 12 comes with swift 5.3, we are not able to choose between 5.1, 5.2 & 5.3. If you want to use Swift 5.2 then you have to use XCode 11.4 as mentioned here: https://developer.apple.com/support/xcode/
In order to determine which swift version you are using you can try this command in terminal:
xcrun swift -version
You will get something like that:
Apple Swift version 5.3.2 (swiftlang-1200.0.45 clang-1200.0.32.28)
Note: If you have installed different versions of XCode use :
xcrun --find swift in order to find the path of each swift and then use the above command to determine it's version.

How can i support iOS Version 10.3 with swift 2.3 project

Good Day,
Lastweek i updated my Xcode from 8.2 to 8.3, In my project i used swift 2.3 version. I tried to use multiple version of xcode to my Mac but when i use the older version of Xcode i can't run the project on devices that has iOS Version 10.3.1
I don't know how to run swift 2.3 to iOS Version 10.3.1
Note: My Project still not uploaded on App Store.
Thanks
You need DeveloperDiskImage for iOS version 10.3 to run your project on device(iOS 10.3) using xcode 8.2.
Download Xcode 8.3.2 from here and copy 10.3 (14E269) folder inside DeviceSupport from the downloaded Xcode using path Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ and paste it into Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ path in your existing Xcode 8.2 in Finder.
It's said in release note clearly that Xcode 8.3 no longer supports Swift 2.3 version. So you need to migrate your projects containing Swift 2.3 code to Swift 3 syntax by opening the project and choosing Edit > Convert > To Current Swift Syntax.

Xcode ToolChain version

I recently realized in the terminal that my swift version was swift 3.0 (swift-3.0-GM-CANDIDATE). I have already updated to xcode 8.3 and I know xcode 8.3 comes with swift 3.1, so I checked the xcode toolchain set in xcode preference pane and it was set to xcode 8.3, but when i opened the directory containing the toolchains i found out that the latest xcode toolchain file was just a alias that points back to the swift-3.0-GM-CANDIDATE.xtoolchain. What do I do, do i download the standalone xcode 8.3 toolchain and install?

Is it possible to change the version of Swift Xcode is using?

Running "swift -version" reveals that:
Xcode 8.2.1 is using Swift 3.0.2
BUT
Xcode 8.3 Beta is using Swift 3.0.
This is a nuisance as Realm has different Swift frameworks for 3.0 and 3.0.2 - which means using a project created with Xcode 8.2.1 using the Realm framework for 3.0.2 won't build if using Xcode 8.3.
Is there a way to change Xcode 8.3 beta to use Swift 3.0.2?

Xcode: Module file was created by a newer version of the compiler

I have a project built with Xcode 6.2. I included a new framework that was built with Xcode 6.3 and I am getting the following compile time error:
Module file was created by a newer version of the compiler
I haven't updated to 6.3 because it requires me to update my OS. I tried the following already, much to no avail.
Xcode: menu Product => Clean
Xcode: menu Product => Clean (while holding Option/Alt)
Removed DerivedData folder.
Is this a general issue that frameworks ALWAYS need to be built into projects with the same version of Xcode?
The deployment target version of the framework is 8.0. It contains Swift code.
The reason this error is occurring is because there was a Swift version upgrade between Xcode 6.2 and 6.3. Xcode 6.3 introduced Swift 1.2 which apparently is not backward compatible with Swift 1.1. Since a particular Swift version ships with a particular version of Xcode you get the error above.

Resources