Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift 5.3 is not showing in xcode 12 build settings

Tags:

xcode

ios

swift

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? enter image description here

like image 534
Santosh Singh Avatar asked Dec 30 '20 09:12

Santosh Singh


People also ask

Where is build settings in Xcode 12?

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.

What version of Swift Do I have Xcode?

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.

Where is build libraries for distribution?

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.

What's new in the new Swift version in Xcode 12?

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.

How do I create a swift project in Xcode?

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.

How do I create a single view app in Xcode?

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.

How to run live preview of SwiftUI in Xcode?

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.


Video Answer


1 Answers

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.

like image 154
kstefanou Avatar answered Oct 20 '22 03:10

kstefanou