Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift Basics An Introduction to Swift Programming An Introduction to Xcode

Alejandro Pinero
Alejandro Pinero
151 Points

do i need a mac for this because i dont know how to install swift on a windows PC

i dont have a mac

4 Answers

suliman alkous
PLUS
suliman alkous
Courses Plus Student 5,139 Points

if you want to learn swift only without ios you can install swift on Linux not windows but if you want ios for sure you need mac

If you wanted to learn basic Swift, without actual iOS development, I would recommend IBM's Swift Sandbox or Repl.it's Swift Compiler. These will allow for command line Swift, but for app development, you can do what Gavin Hobbs recommended, running a VM. But overall, I would recommend a Mac for development. In my experience, most development tools are available on Mac, where on Windows, you're a little limited. Macs are usually a developer's choice, although Windows is more powerful for Windows applications (.NET) (Can be done on Mac as well using Visual Studios for Mac, but cannot run as fluidly.)

There is a workaround now... https://swiftforwindows.github.io but if you're not confident to install this it is truly best to have a Mac.

Gavin Hobbs
Gavin Hobbs
5,205 Points

Hey Alejandro Pinero if you're looking into doing app development with swift you're going to need Xcode and Xcode can only be installed on a device running Mac OS which pretty much limits your options to Macs.

I have bought and installed Windows 10 on my Mac on a separate partition making it so I could either boot up into Windows or Mac OS... but I'm not sure you can do the reverse with a PC.

If you don't want to buy a Mac, which is what I would suggest if you want to get into the Apple app market, I would suggest looking into doing what I mentioned above or looking into a virtual machine.

https://www.pcsteps.com/2157-mac-os-x-virtual-machine-vmware-player/

Hope this helps!

  • Gavin