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 2.0 Basics An Introduction to Swift Programming An Introduction to Xcode

Munir Yousef
Munir Yousef
123 Points

I dont have a mac but i want to learn swift on xcode. what can i do ?

Dont have a mac but want to learn swift

8 Answers

Munir Yousef
Munir Yousef
123 Points

Thank you for your answer

I've never tried it but on youtube there are a lot of videos that will show you how to run the mac operating system in windows with virtualization. Check the below link. Remember I've never done it just researched it a bit.

https://www.youtube.com/watch?v=ZtZARlrH5QI

Patrick Donohoe
Patrick Donohoe
2,135 Points

to begin with you don't need a mac. you can use an online swift compiler which works the same as a playground. Try this one: http://swiftstub.com/ as you progress to building an app you will need a mac though.

I use VirtualBox on PC to run OS X El Capitan. I've been using for a while now, not for swift but I do have xcode there. I watched this video to learn how to install and everything: https://www.youtube.com/watch?v=7rM5iXOE7aI

If you need help or have any questions let me know.

Munir Yousef
Munir Yousef
123 Points

Thank you for that info.

I don't think you can have a Mac OS virtual image inside Windows OS. However, the vice versa is possible though.

Stuart Forrest
Stuart Forrest
1,723 Points

It is running macOS in a virtual environment is against Apple's policy also!!!

Why not just get a Mac? It's far easier, if you're super serious about it.