+ 9

Can we install MAC OS in PC and program Swift program code?

Can anyone answer whether we can install IOS in PC for Swift Programms. or practice Swift coded?

30th Jun 2017, 4:51 PM
John Joy Raj
John Joy Raj - avatar
9 Respostas
+ 9
Installing MacOS on/with Virtual machine(s) is leagal at the same scale as installing it on PC(s)... I mean it is illegal* too (there are some rare unconvenient way with MaxOS Server (Tiger? or other version?), but I can not remember all nuances about that one...) To start practice in Swift you can also use online playground/compilers/sandboxes, you need to google it (as I don't remember exact sites) or even search here in Q/A, 'cause there was a (small) thread about this... * I myself think that it is even unfair sometimes, for example if you have old MacBook with MacOS distro and it's broken or you want to get more powerfull laptop but not from Apple (to pay less) you should be able to (re)use MacOS at least in this case... you payed for it when bought Apple MacBook/Powerbook/MacWhatever...
3rd Jul 2017, 3:03 PM
Andrew Harchenko (Tomsk)
Andrew Harchenko (Tomsk) - avatar
+ 7
Swift was made open source, and can be used on Linux. There's a brief "getting started" at https://swift.org/getting-started/#installing-swift IBM is using Swift for a lot of server side app dev, and there are Unbuntu communities developing with Swift. If you're absolutely new to coding on a Linux environment, give yourself some time to learn command line basics, package management, etc. Consider a Raspberry Pi running Raspbian as a option for a learning environment. note: using Swift outside of Xcode, you only get the language... not the frameworks that do things on iPhones, iPads, and Macs.
30th Jun 2017, 10:38 PM
Daniel Oliver
+ 6
Thank you friend, if it is illegal we don't try.
30th Jun 2017, 5:07 PM
John Joy Raj
John Joy Raj - avatar
+ 4
you can use Hackintosh , Google it
3rd Jul 2017, 11:03 AM
Ramzi Aloui
Ramzi Aloui - avatar
+ 3
Daniel Oliver has the best answer here. You may not be able to (legally) install OSX on your PC, however installing Ubuntu is an option. You can install multiple OS's on your PC, so no need to convert from Windows to Ubuntu (or another linux distro) 100%. Optionally you can run Ubuntu in a virtual machine. (Setup of Swift is identical.) This is what I went with on my main PC. Once you have Ubuntu, you can download and setup Swift via the instructions in Daniels answer.
1st Jul 2017, 8:03 PM
MaxInertia
MaxInertia - avatar
+ 3
Thank you dear friends for liking and commenting... Thumbs up...
4th Jul 2017, 3:22 AM
John Joy Raj
John Joy Raj - avatar
+ 2
Swift program requires XCode and XCode requires MacOS X... Installing MacOS on PC is illegal one... So I do not suggest that... If u still wanted to...u can install MacOS X with virtual machines like VMware, Oracle's VM Virtual Box, etc., on PC... I hope this helps...
30th Jun 2017, 5:02 PM
Vignesh NC
Vignesh NC - avatar
+ 2
John Follow these steps to install and run Swift. 1.Open the App Store app on your Mac (by default it's in the Dock). 2.In the search field in the top-right corner, type Xcode and press the Return key. ... 3.Click Get and then click Install App. 4.Enter your Apple ID and password when prompted. Try it.
2nd Jul 2017, 7:00 AM
kapil arora
kapil arora - avatar
+ 1
Rather than use any VM bro...
30th Jun 2017, 5:08 PM
Vignesh NC
Vignesh NC - avatar