Jump to content

Mac and IOS Programming in Linux

I cannot afford a macbook but I want to learn swift programming language. I have a 32bit Ubuntu Budgie Dell laptop. Is it possible to do swift programming there ? Or even on windows 10 ?

Link to comment
Share on other sites

Link to post
Share on other sites

AFAIK Xcode only runs on mac.

Ryzen 5 1600 @ 3.9 Ghz  | Gigabyte AB350M Gaming 3 |  PaliT GTX 1050Ti  |  8gb Kingston HyperX Fury @ 2933 Mhz  |  Corsair CX550m  |  1 TB WD Blue HDD


Inside some old case I found lying around.

 

Link to comment
Share on other sites

Link to post
Share on other sites

8 minutes ago, soorma said:

I cannot afford a macbook but I want to learn swift programming language. I have a 32bit Ubuntu Budgie Dell laptop. Is it possible to do swift programming there ? Or even on windows 10 ?

Sure, run a VM of MacOS, program from there

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to comment
Share on other sites

Link to post
Share on other sites

That is a really great idea. I'll go with that option when everything else fails. 

Link to comment
Share on other sites

Link to post
Share on other sites

Swift has officially support on Ubuntu for a couple of years now:

https://swift.org/download/

 

I've not used Swift so I'm not sure about the quality of the development environment on Ubuntu (but its probably better on macOS).

 

 

Desktop: Intel i9-10850K (R9 3900X died 😢 )| MSI Z490 Tomahawk | RTX 2080 (borrowed from work) - MSI GTX 1080 | 64GB 3600MHz CL16 memory | Corsair H100i (NF-F12 fans) | Samsung 970 EVO 512GB | Intel 665p 2TB | Samsung 830 256GB| 3TB HDD | Corsair 450D | Corsair RM550x | MG279Q

Laptop: Surface Pro 7 (i5, 16GB RAM, 256GB SSD)

Console: PlayStation 4 Pro

Link to comment
Share on other sites

Link to post
Share on other sites

I've been an iOS Programmer for a couple years now. Swift is officially supported on Ubuntu, but you'll have a heck of a time getting it to actually work well. Depending on your use case this may be ok. I'd suggest either trying to find an older MacMini that would support it natively, or trying to build a hackintosh. Goodluck!

TX10 Build Log: http://linustechtips.com/main/topic/456229-tx10-build-log/

Case: TX10-D   Proccessor: i7-5820k   MotherBoard: Asrockx99 Extreme4   Ram: Crucial Ballistix Sport 16GB (DDR4-2400)   GPU: Asus Strix OC 980ti   Storage: 850pro 500gb, 850pro 500gb, 850pro 256gb, WD black 16tb total, Silicon Power S60 120GB   PSU: Seasonic snow silent 1050   Monitors: Three of Asus VG248QE 144Hz 24.0"

Link to comment
Share on other sites

Link to post
Share on other sites

14 hours ago, Cvdasfg said:

I've been an iOS Programmer for a couple years now. Swift is officially supported on Ubuntu, but you'll have a heck of a time getting it to actually work well. Depending on your use case this may be ok. I'd suggest either trying to find an older MacMini that would support it natively, or trying to build a hackintosh. Goodluck!

How about just learning basics of Swift ?

Link to comment
Share on other sites

Link to post
Share on other sites

38 minutes ago, soorma said:

How about just learning basics of Swift ?

There’s a tutorial on apples website but you won’t get to try it. 

Link to comment
Share on other sites

Link to post
Share on other sites

10 hours ago, soorma said:

How about just learning basics of Swift ?

I mean you can technically learn the basics on anything even notepad or physical paper... It really depends on what your looking to get out of it.

TX10 Build Log: http://linustechtips.com/main/topic/456229-tx10-build-log/

Case: TX10-D   Proccessor: i7-5820k   MotherBoard: Asrockx99 Extreme4   Ram: Crucial Ballistix Sport 16GB (DDR4-2400)   GPU: Asus Strix OC 980ti   Storage: 850pro 500gb, 850pro 500gb, 850pro 256gb, WD black 16tb total, Silicon Power S60 120GB   PSU: Seasonic snow silent 1050   Monitors: Three of Asus VG248QE 144Hz 24.0"

Link to comment
Share on other sites

Link to post
Share on other sites

18 hours ago, Cvdasfg said:

I mean you can technically learn the basics on anything even notepad or physical paper... It really depends on what your looking to get out of it.

That's great, how do I download it ? I have Ubantu Budgie 32 bit. 

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, soorma said:

That's great, how do I download it ? I have Ubantu Budgie 32 bit. 

First, you'll want to be running 64-bit Ubuntu if you want to write anything in 64-bit code, which is kind of a big deal in 2018, since all modern OS's are running in 64-bit mode now. There are plenty of guides on the internet if you simply Google for "swift ubuntu" so I linked the first few below.

https://www.makeuseof.com/tag/start-programming-swift-ubuntu/

https://gist.github.com/Azoy/8c47629fa160878cf359bf7380aaaaf9

https://medium.com/@agavatar/open-source-swift-on-ubuntu-linux-cd00e697dff0

Desktop: KiRaShi-Intel-2022 (i5-12600K, RTX2060) Mobile: OnePlus 5T | Koodo - 75GB Data + Data Rollover for $45/month
Laptop: Dell XPS 15 9560 (the real 15" MacBook Pro that Apple didn't make) Tablet: iPad Mini 5 | Lenovo IdeaPad Duet 10.1
Camera: Canon M6 Mark II | Canon Rebel T1i (500D) | Canon SX280 | Panasonic TS20D Music: Spotify Premium (CIRCA '08)

Link to comment
Share on other sites

Link to post
Share on other sites

11 hours ago, kirashi said:

First, you'll want to be running 64-bit Ubuntu if you want to write anything in 64-bit code, which is kind of a big deal in 2018, since all modern OS's are running in 64-bit mode now. There are plenty of guides on the internet if you simply Google for "swift ubuntu" so I linked the first few below.

https://www.makeuseof.com/tag/start-programming-swift-ubuntu/

https://gist.github.com/Azoy/8c47629fa160878cf359bf7380aaaaf9

https://medium.com/@agavatar/open-source-swift-on-ubuntu-linux-cd00e697dff0

Thanks. I'll see if If I could just install a 64bit processor on that laptop. 

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/16/2018 at 6:53 PM, kirashi said:

First, you'll want to be running 64-bit Ubuntu if you want to write anything in 64-bit code, which is kind of a big deal in 2018, since all modern OS's are running in 64-bit mode now. There are plenty of guides on the internet if you simply Google for "swift ubuntu" so I linked the first few below.

https://www.makeuseof.com/tag/start-programming-swift-ubuntu/

https://gist.github.com/Azoy/8c47629fa160878cf359bf7380aaaaf9

https://medium.com/@agavatar/open-source-swift-on-ubuntu-linux-cd00e697dff0

Don't forget swift will natively compile down to either 32-bit or 64-bit depending on the architecture of the machine. An Int in swift will be whatever size the PC can hold. If you NEED one or the other you have to use Int32/Int64.

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/19/2018 at 2:21 AM, jimistephen said:

Don't forget swift will natively compile down to either 32-bit or 64-bit depending on the architecture of the machine. An Int in swift will be whatever size the PC can hold. If you NEED one or the other you have to use Int32/Int64.

Okay

Link to comment
Share on other sites

Link to post
Share on other sites

Don't forget 64 bits doesn't mean it's faster than 32 bits. It just mean everything take more space and you also have access to more memory (over 2 gb). Don't go waste money if you only plan to make small apps like word processing.

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/21/2018 at 10:33 PM, Franck said:

Don't forget 64 bits doesn't mean it's faster than 32 bits. It just mean everything take more space and you also have access to more memory (over 2 gb). Don't go waste money if you only plan to make small apps like word processing.

Right now I just want to learn.

Link to comment
Share on other sites

Link to post
Share on other sites

I've developed some Android apps for personal use in linux using Python and Kivy! 

 

Kivy is perfect to develop apps, if you know python already. https://kivy.org/#home 

 

Its also perfect to deliver to booth iOS and Android, since the same code can generate packages for booth platforms, which is awesome! 

 

here is a how-to on ios: https://kivy.org/doc/stable/guide/packaging-ios.html

 

The problem is that, to create an iOS ".ipa" package, there's no way but using Xcode... in OSX! 8\

 

But, since Kivy code is used for booth platforms, you could very well develop and test on Android (even testing on an android emulator in linux - Android studio has android emulation built-in, so you don't need a device), and just use a VM running OSX to generate the IPA when you actually want to test on iOS.

 

To install the latest OSX inside a VirtualBox machine, all the steps are here: ( So you don't need to OWN a Mac at all!! ) 

https://github.com/geerlingguy/macos-virtualbox-vm

 

You could even automatize the IPA build using ssh, so from inside your "Makefile", so a simple "make ios" in linux would ssh to the OSX virtualbox and build the IPA in the project folder you have on Linux.

That way you can work from linux and don't even have to look at OSX and Xcode! lol

 

Is a bit of setup, but after its done, coding is actually very simple and straight forward... and you get Android version for free! lol

 

have fun and let me known how it goes! 

 

cheers... 

-H

Link to comment
Share on other sites

Link to post
Share on other sites

On 9/26/2018 at 11:22 PM, rhradec said:

I've developed some Android apps for personal use in linux using Python and Kivy! 

 

Kivy is perfect to develop apps, if you know python already. https://kivy.org/#home 

 

Its also perfect to deliver to booth iOS and Android, since the same code can generate packages for booth platforms, which is awesome! 

 

here is a how-to on ios: https://kivy.org/doc/stable/guide/packaging-ios.html

 

The problem is that, to create an iOS ".ipa" package, there's no way but using Xcode... in OSX! 8\

 

But, since Kivy code is used for booth platforms, you could very well develop and test on Android (even testing on an android emulator in linux - Android studio has android emulation built-in, so you don't need a device), and just use a VM running OSX to generate the IPA when you actually want to test on iOS.

 

To install the latest OSX inside a VirtualBox machine, all the steps are here: ( So you don't need to OWN a Mac at all!! ) 

https://github.com/geerlingguy/macos-virtualbox-vm

 

You could even automatize the IPA build using ssh, so from inside your "Makefile", so a simple "make ios" in linux would ssh to the OSX virtualbox and build the IPA in the project folder you have on Linux.

That way you can work from linux and don't even have to look at OSX and Xcode! lol

 

Is a bit of setup, but after its done, coding is actually very simple and straight forward... and you get Android version for free! lol

 

have fun and let me known how it goes! 

 

cheers... 

-H

Wow, thanks

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×