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?
Related
We have built a binary framework built with Xcode 14.1 using Xcode 13.4.1 getting below error.
BUILD_LIBRARY_FOR_DISTRIBUTION ENABLED ALSO.
this SDK is not supported by the compiler (the SDK is built with
'Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3
clang-1400.0.29.51)', while this compiler is 'Apple Swift version
5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)'). Please select a toolchain which matches the SDK.
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.
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.
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?
My project is in swift 2.3. currently using xcode 8.2.1 . while debugging (using po command) getting below error.
Swift expressions require OS X 10.10 / iOS 8 SDKs or later in Xcode 8.2.1.