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?
Choose the project in the Project Navigator on the left. Select the Configurations target from the Targets section and click the Build Settings tab at the top. The Build Settings tab shows the build settings for the Configurations target. It's possible to expand this list with build settings that you define.
Installed Xcode-beta 11.4, how can I see what version of swiftc it's using? xcode-select only control what the command line uses, right? This is independent of what's inside Xcode? You can run swiftc -version in terminal and it will print the compiler version.
Xcode 11 has a new “Build Libraries for Distribution” option under the “Build Options” menu you'll want to check when creating modules for use elsewhere.
Xcode 12 contains the next Swift update bundled, version 5.3. The more the Swift language advances, the more features we all get, resulting to better, safer, clearer and more robust code.
Name the project Configurations, set Language to Swift, and make sure the checkboxes at the bottom are unchecked. Tell Xcode where you'd like to store the project and click Create.
Fire up Xcode and create a new project by choosing the Single View App template from the iOS > Application section. Name the project Configurations, set Language to Swift, and make sure the checkboxes at the bottom are unchecked. Tell Xcode where you'd like to store the project and click Create.
The first button runs the live preview of the current SwiftUI view in Xcode. By doing a long click on it, a menu appears that allows to choose whether to run live preview or debug preview. Second button on the left can be used to run the preview on a device.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With