7 Day App Action Plan: Discover the app development process, create a plan for your app and take your first steps towards bringing your app to life. 28 Day iOS Development Challenge: Get started on your app journey the right way with the most popular video series on my YouTube channel. Xcode is the macOS-only software program, called an IDE, that you use to design, develop and publish iOS apps. The Xcode IDE includes Swift, a code editor, Interface Builder, a debugger, documentation, version control, tools to publish your app in the App Store, and much more.
A guide to setting up an Apple Mac for DevOps and software development. This is current for macOS 10.14 (Mojave).
Log in once, run Software Update, and ensure that the operating system is at the latestpoint release. After all of the updates have been applied, restart the computer.
Log in again and create an Admin user account for your use. If other people will beusing the machine, create Standard accounts for them. Log out of the initial account,and log in to the Admin account that you have just created.
Always log in with this new Admin account. The benefit of leaving the initial accountuntouched is that it ensures that you always have a working account to login with.
Admin accounts have sudo privileges: All Admin accounts on a Mac may use sudo to runcommand-line utilities with administrative (root) privileges.
You should also find an external hard drive. Begin using Time Machine as soon aspossible, as it provides the most easy method for backing up your system.
Configuring The Trackpad
To make the trackpad behave correctly, ensure that these settings are enabled:
Creating a Private Applications Folder
Once you have logged into your account, create a folder called Applications withinyour home folder. Whenever you are prompted to drag a new applications into the globalApplications folder, put it in this private Applications folder instead. Someapplications have to be installed to global folders, but in most cases you can keep thesystem directories clean by storing third-party products in your private Applicationsfolder.
Securing the Safari Browser
Whether or not you regularly use Safari, you should open it once, and adjust thesettings in case that you use it later.
First, choose Safari > Preferences > General and deselect the option Open “safe” files after downloading.
Second, go to Safari > Preferences > Search. Decide which search engine that you want to use. Ensure that Safari Suggestions is not enabled.
Then, check the plug-in settings. Go to Safari > Preferences > Security > Plug-in Settings… and review the plug-ins and settings.
Apple provide quite secure operating systems, but unfortunately convenience has won outover security in a few places. These can easily be corrected by changing a few settings.If you are using a laptop then you should probably make all of these changes as soon aspossible.
Basic Settings
Select System Preferences > Security & Privacy, and set the following:
Disable Spotlight
By default, Spotlight sends queries to Apple. Unless you want this feature, turn it off.
Select System Preferences > Spotlight > Search Results, and ensure that Spotlight Suggestions is not enabled.
Enable File Vault NOW
Current versions of macOS include File Vault 2, a full-disk encryption system that haslittle in common with the much more limited File Vault 1. You should enable File VaultNOW, because it is the only protection against anyone with physical access to yourcomputer. All other security measures will be completely bypassed if someone withphysical access simply restarts the computer with a bootable pen drive.
File Vault really is secure, which means that you can permanently lose access to yourdata if you lose the passwords and the recovery key.
Set a Firmware Password
Set a password to stop access to theRecovery mode. Otherwise, any maliciousindividual can change the firmware settings to boot from a disc or device of theirchoosing. If you did not enable File Vault, then the attacker will have complete accessto all of the files on the system.
Apple Knowledge Base article HT204455provides full details.
Setting Up Time Machine Backups
Time Machine is simple to set up. Just take a suitably large external hard drive, plug itin to your Mac, and agree when prompted. The drive setup process will reformat the harddrive. The only settings that may need to change are the exclusions.
Choose System Preferences > Time Machine, and click Options. Add to the exclusionslist any folders that contain ISO disk images, virtual machines, or database files (suchas Entourage). If the external hard drive is short of space, exclude the Systemfolder.
The first step is to install a compiler. The easiest way to install one is with theXcode Command Line Tools package.
Once you have the compiler that is provided by Xcode, you can useHomebrew to install everything else that you need.
Getting Xcode
Apple now provide the Xcode suite as a free download from the App Store. To installXcode Command Line Tools, install Xcode from the App Store, then open a Terminal windowand enter the following command:
Setting Up Homebrew
Homebrew provides a package management system for macOS, enabling youto quickly install and update the tools and libraries that you need. Follow theinstructions on the site.
You should also amend your PATH, so that the versions of tools that are installed withHomebrew take precedence over others. To do this, edit the file .bashrc inyour home directory to include this line:
You need to close all terminal windows for this change to take effect.
To check that Homebrew is installed correctly, run this command in a terminal window:
To update the index of available packages, run this command in a terminal window:
Once you have set up Homebrew, use the brew install command to add command-line software to your Mac, and brew cask install to add graphical software. For example, this command installs the Slack app:
Installing the Git Version Control System
The Xcode Command Line Tools include a copy of Git, which isnow the standard for Open Source development, but this will be out of date.
To install a newer version of Git than Apple provide, use Homebrew. Enter this command in a terminal window:
If you do not use Homebrew, go to the Web site and follow thelink for Other Download Options to obtain a macOS disk image. Open your downloadedcopy of the disk image and run the enclosed installer in the usual way, then dismountthe disk image.
Always set your details before you create or clone repositories on a new system. Thisrequires two commands in a terminal window:
The global option means that the setting will apply to every repository that you workwith in the current user account.
To enable colors in the output, which can be very helpful, enter this command:
Text Editors
Installations of macOS include older command-line versions of bothEmacs and vim, as well asTextEdit, a desktop text editor. TextEdit is designed for light-weight word processing,and has no support for programming. Add the code editors or IDEs that you would prefer to use.
If you do not have a preferred editor, consider using a version of Visual Studio Code. Read the next section for more details.
To work with a modern Vim editor, install Neovim.
Visual Studio Code
Visual Studio Code is a powerful desktop editor for programming, with built-in support for version control and debugging. The large range of extensions for Visual Studio Code enable it to work with every popular programming language and framework. It is available free of charge.
The Microsoft releases of Visual Studio Code are proprietary software with telemetry enabled by default. To avoid these issues, use the packages that are provided by the vscodium project instead.
Once you have installed Visual Studio Code or VSCodium, read this article for more information about using the editor.
Neovim
If you would like a modern Vim editor with a good default configuration, set up Neovim.
Setting The EDITOR Environment Variable
Whichever text editor you choose, remember to set the EDITOR environment variable inyour ~/.bashrc file, so that this editor is automatically invoked by command-linetools like your version control system. For example, put this line in your profile tomake Neovim (nvim) the favored text editor:
Setting Up A Directory Structure for Projects
To keep your projects tidy, I would recommend following theGo developer conventions. These guidelines may seemslightly fussy, but they pay off when you have many projects, some of which are ondifferent version control hosts.
First create a top-level directory with a short, generic name like code. By default Gouses a directory called go, but you can change that when you set up a Go installation.
In this directory, create an src sub-directory. For each repository host, create asubdirectory in src that matches your username. Check out projects in the directory.The final directory structure looks like this:
Creating SSH Keys
You will frequently use SSH to access Git repositories or remote UNIX systems. macOSincludes the standard OpenSSH suite of tools.
OpenSSH stores your SSH keys in a .ssh directory. To create this directory, run these commands in a terminal window:
To create an SSH key, run the ssh-keygen command in a terminal window. For example:
Use 4096-bit RSA keys for all systems. The older DSA standard only supports 1024-bitkeys, which are now too small to be considered secure.
JavaScript Development: Node.js
Homebrew provides separate packages for each version of Node.js.To ensure that you are using the version of Node.js that you expect, specify the versionwhen you install it. For example, enter this command in a Terminal window to install theNode.js 12, the current LTS release:
Add the bin/ directory for this Node.js installation to your PATH:
If you need yarn, enter this command in a Terminal window toinstall it:
Go Development
Use Homebrew to install Go:
This provides the standard command-line tools for Go.
The current version of Go includes support for dependency management with modules. Use modules for new projects. Some existing projects still use dep, or an older tool.
Setting a GOPATH
Current versions of Go do not require a GOPATH environment variable, but you should set it to ensure that third-party tools and Terminal auto-completion work correctly.
Set a GOPATH environment variable in your ~/.bashrc file:
Then, add this to your PATH:
Close the Terminal and open it again for the changes to take effect.
Java Development: AdoptOpenJDKWhich Version of Java?
Many vendors provide a JDK. To avoid potential licensing and support issues, use the JDK that is provided by the AdoptOpenJDK project. The versions of Java on the OpenJDK Website are for testers, and the Oracle JDK is a proprietary product that requires license fees.
Use the LTS version of the OpenJDK, unless you need features that are in the latest releases.
Once you have installed a JDK, get the Apache Maven build tool. This is provided by the Maven project itself, and is not part of the OpenJDK.
Use jEnv if you need to run multiple JDKs, such as different versions of the same JDK.
Setting up Java with Homebrew
Run these commands in a terminal window:
This installs version 11 of the OpenJDK, from the AdoptOpenJDK project.
Run this command in a terminal window to install Maven:
Setting up jEnv
Run this command in a terminal window to install jEnv:
Next, add this to your PATH:
Add this to your ~/.bashrc file:
Open a new terminal window, and run this command:
This enables jEnv to manage the JAVA_HOME environment variable.
To avoid inconsistent behaviour, close all the terminal windows that you currently have open. The jEnv utility will work correctly in new terminal windows.
Lastly, run this command to register your current JDK with jEnv:
To see a list of the available commands, type jenv in a terminal window:
Manual Set up of AdoptOpenJDK
To manually install a copy of the JDK:
To manually install a copy of Apache Maven:
Replace MAVEN-DIRECTORY with the name of the directory that Maven uses, such as apache-maven-3.6.0.
Maven is written in Java, which means that the project provides one package, which works on any operating system that has a supported version of Java.
Python Development: pipenv
Unfortunately, macOS includes a copy of Python 2, so you will need to install Python 3 yourself.
To maintain current and clean Python environments, you should also use pipenv. This builds on two features of Python: the virtual environments and the pip utility.
Enter this command to install Python 3 and pipenv using Homebrew:
Use pipenv to manage your Python projects. The pipenv tool itself will automatically work with the copy of Python 3 from Homebrew.
To use the Python 3 interpreter outside of projects that are managed by pipenv, specify python3 on the command-line and inyour scripts, rather than python:
If you need to run the pip utility, rather than setting up a development environment with pipenv, always use the command pip3:
The Python Guide tutorialshows you how to work with pipenv.
Rust Development: rustup
The official rustup utility enables you to install the tools for building softwarewith the Rust programming language. Click on the Install button on the front page of theRust Website, and follow the instructions.
By default, the installer adds the correct directory to your path. If this does notwork, add this to your PATH manually:
This process installs all of the tools into your home directory, and does not add anyfiles into system directories.
Ruby Development: RVM
All macOS systems include a copy of Ruby, but it is outdated. To maintain current andclean Ruby environments, use the RVM system.
RVM relies on Git, so you must have a working installation of Git before you can set upRVM.
By default, RVM downloads copies of Ruby that have been compiled for your operatingsystem. If there is no compiled version, RVM then falls back to downloading the sourcecode and then compiling it on your computer. Enter this command to ensure that therequirements for compiling Ruby are on your system, using Homebrew:
Finally, you can speed up installation of gem packages by disabling the generation oflocal documentation. To do this, create a file in your home directory with the name.gemrc and put this line in it:
Minikube sets up and manages Kubernetes on a single system, so that you can develop and test without needing a set of servers.
To install Minikube with Homebrew, run these commands in a terminal window:
By default, Minikube uses a virtual machine manager. If you do not need VirtualBox, install hyperkit, which provides a minimal virtual machine manager.
To install Helm with Homebrew, run this command in a terminal window:
To install Skaffold with Homebrew, run this command in a terminal window:
This article explains Minikube in more detail.
Consider using containers to run the databases that you need. If you prefer to install servicesdirectly on to your workstation, Homebrew provides packages for PostgreSQL, MariaDB and MySQL.
Installing PostgreSQL
To install PostgreSQL using Homebrew, enter this command in a terminal window:
This command installs the server, the command-line tools, and the client libraries thatare needed to compile adapters for programming languages.
Homebrew also provides some commands for managing your PostgreSQL installation. Forexample, to start the server, follow the instructions that are displayed after theinstallation process is completed. If you upgrade your copy of PostgreSQL, you shoulduse the postgresql-upgrade-database command that Homebrew gives you.
Installing MariaDB or MySQL
To install MariaDB using Homebrew, enter this command in a terminal window:
To install MySQL using Homebrew, enter this command in a terminal window:
These commands install the server, the command-line tools, and the client libraries thatare needed to compile adapters for programming languages. To start the server, followthe instructions that are displayed after the installation process is completed.
For compatibility, MariaDB uses the same names for command-line tools as MySQL.
Remember to set a password for the root accounts. First, login with the mysqlcommand-line utility:
The -q Option Disables Command History: By default, the command-line client storesthe full text of every command in a history file. If you know that you are going torun statements that include passwords or other sensitive data, use the -q option.
Run these statements to change the password for root access:
You now need a password to login to the installation as root. To login with root again,use this command:
Enter the password when prompted.
You should also remove the anonymous accounts and test database that MySQL automaticallyincludes:
If you intend to duplicate a production environment for testing, create a configurationfile on your Mac. Production installations of MySQL should be configured withappropriate SQL modes to enable data integrity safeguards. By default, MySQL permitsvarious types of invalid data to be entered.
Database Management Tools
Apple offer overviews and task-orientated help on theirsupport Web site for new macOS users.
Every new user should probably readHow to switch to the Mac, by Rui Carmo.
The macOS Privacy and Security Guide by Dr Doh provides extensive information about those topics.
How can you run Xcode on Windows and develop iOS apps with a Windows PC? The short answer is: you can’t! You’ve got a few alternatives to get around that, however. In this tutorial, we’ll discuss how you can install Xcode on Windows to build iOS apps.
Here’s what we’ll get into:
Let’s get to it!
Xcode for Windows: What & Why
Xcode is the macOS-only software program, called an IDE, that you use to design, develop and publish iOS apps. The Xcode IDE includes Swift, a code editor, Interface Builder, a debugger, documentation, version control, tools to publish your app in the App Store, and much more.
Xcode contains everything you need to build iOS apps, and it only runs on macOS!
That’s when the problems start. You want to make an iOS app with your Windows PC, but you can’t buy a PC or laptop with macOS pre-installed on it. Unlike Windows, Apple doesn’t license its operating system to other computer manufacturers. You can only use macOS on a Mac.
What Does It Take To Develop Macos Appears
In fact, when you obtain a license to use macOS, which happens when you purchase a Mac computer, you have to agree to only run the operating system on Apple hardware. This effectively limits you to only develop apps on a Mac.
“It’s more fun to be a pirate than to join the navy.”
— Steve Jobs (1983)
But… it’s more fun to be a pirate, than to join the navy, right? Let’s discuss a few alternatives that’ll let you run Xcode on Windows and develop iOS apps on a Windows PC!
Rent a Mac in the Cloud
An even easier way to get your hands on macOS, albeit more expensive, is to rent a Mac “in the Cloud”. You can work with Xcode on Windows with this approach, because you’re essentially connected to a Mac that’s elsewhere.
Here’s how that works:
Services like MacinCloud and MacStadium offer affordable rent-a-Mac products, usually paid on a monthly basis. Prices typically start at $20/month and you can choose from several hardware options, including Mac Mini and Mac Pro.
You connect to those cloud-based Macs via a Remote Desktop Connection (RDP). Windows includes a stock Remote Desktop Client you can use, and so do most Linux operating systems. Once you’re logged on, you can launch Xcode, and start building your iOS app. That way you’re effectively running Xcode on your Windows PC!
Cloud-based Macs usually come in 3 flavours:
A dedicated Mac is the most convenient, and the most powerful option. A virtual Mac is OK too, but it typically does not perform as well as a physical Mac computer.
Running Xcode via a Mac in the cloud has a drawback: you can’t easily connect your iPhone to Xcode via USB! With Xcode on your local Mac you can run and debug your app on your own iPhone, via the USB/Lightning cable. This obviously won’t work when your Mac is in the cloud…
Don’t worry! There are plenty of solutions for that:
An interesting use case for renting a Mac in the cloud comes from the latest developments in Apple’s hardware. Many designers, developers and desktop-publishers have voiced their concerns over Apple hardware lagging behind, offering low-spec computers for a fairly high price.
If you don’t want to take your $3.000 MacBook Pro with you in a coffee shop, or on your next trip to Thailand, why not purchase a low-end Windows or Linux laptop, and connect to your Mac in the cloud? You can either host it at home yourself, co-locate it in a data center, or rent a dedicated cloud-based Mac.
Do you want to learn how to code iOS apps, but don’t want to invest money in a Mac? Rent a Mac in the cloud for the duration of the iOS development course you’re taking! It’s a great way to bootstrap learning iOS development, and you can always buy your own Mac later.
Learn how to code iOS appsGet started with Xcode and Swift
Ready to get started with iOS development? Learn how to code iOS apps with Xcode and Swift with our immersive iOS development course. Works both on Mac and PC!
Install macOS on Your Windows PC via VirtualBox
The easiest way to run Xcode on Windows is by using a virtual machine (VM).
A virtual machine will create an environment an operating system can run in, as if it’s running on the hardware itself, except it’s running “on top” of your actual hardware and operating system. You can then run Xcode normally, because it essentially runs on macOS on Windows!
This is called virtualization, and it allows you to run Windows on Linux, macOS on Windows, and even Windows on macOS. One of the benefits of virtualization is to run multiple OS side-by-side, which is useful for cross-platform development.
You need 2 things to run macOS on Windows in a VM:
You can obtain a copy of macOS by downloading it from the App Store or by borrowing it from a friend. A great approach is to search for virtual disk images that have macOS pre-installed. You can also find installers from various sources on the internet, or upgrade a pre-existing image to a newer (beta) version of macOS.
Here’s what you do next:
You can read exactly how to in this tutorial. The recommended system specs are: 4-8 GB of RAM, an Intel i5/i7 compatible CPU, and at least 10 GB of free disk space.
Note: Using macOS on non-Apple hardware is against Apple’s End User License Agreement (EULA). (Fun fact: the same EULA prohibits the use of macOS to manufacture missiles or nuclear weapons…)
Build Your Own “Hackintosh” to Run Xcode
The most obvious choice to run Xcode on a Windows PC is perhaps to literally install macOS on a Windows PC…
“One platform to rule them all” has always been Apple’s take on the world. The Mac, App Store, iOS and Apple Music are all closed systems. Apple enthusiasts have always enjoyed the integrated Apple experience.
On the other hand, the rest of the world builds computers using an “open systems architecture”, in which you can effectively mix-and-match computer components and architectures to create your preferred computing machine.
Building $10.000 gaming PCs, mid-level desktops, blazing-fast ultrabooks, and $250 laptops is only possible because of open hardware. Because of Apple’s closed systems, you’re always bound by the hardware options they give you.
But… what if you want to run macOS on your custom built PC? Apple won’t let you, and your computer manufacturer can’t install macOS for you, even if they wanted to. Because macOS shall only run on Apple hardware!
Enter the “Hackintosh”.
A Hackintosh is a PC that runs macOS. Just like you can install macOS in a virtual machine, or in the cloud, you can install macOS as the bootable operating system on your PC. Switch it on, and macOS loads.
You can also create a dual-boot, i.e. a system that both hosts Windows and macOS. When you boot your PC, you can select the operating system that starts.
Building a Hackintosh can be a tricky exercise, especially if you’re not familiar with PC hardware and creating custom installations. Not all hardware is compatible with macOS. Moreover, Apple has of course created safe-guards against booting macOS on unsupported hardware.
Nevertheless, it’s a good option for running macOS on your custom hardware, and booting macOS on your Windows PC. Check out hackintosh.com for more information, and step-by-step guides.
The name “Hackintosh” comes from the old brand-name of Apple computers: Macintosh, combined with “hack”. Again, it’s against Apple’s EULA – but you wanted to be a pirate, right?
The days of the Hackintosh are almost over, depending on who you ask. Apple’s newer hardware includes a T2 chip now. Hardware-specific chips are notoriously hard to mimic in non-Apple hardware, which essentially means that, in the future, you may not be able to install or update macOS on a computer that doesn’t have that T2 chip.
What Does It Take To Develop Macos ApplicationsSwift for Windows & Linux
Developers who want to learn Swift have 2 alternative approaches to code Swift, next to working with Xcode on Windows. Swift is open source, which means you can essentially run it on any system.
Currently, you can use:
Here’s how you can run Swift code on Linux:
You can also copy the Swift executables to your
$PATH , or add Swift’s folder to $PATH , to use the swift command anywhere on your system.
Here’s how you can run Swift code on Windows:
What Does It Take To Develop Macos Appear
It appears the Swift for Windows project hasn’t been updated in a while. It’s latest supported version is Swift 4.1., which doesn’t differ that much from Swift 5 in terms of beginner syntax and functionality. Your mileage may vary, though!
You can even run and compile Swift on the $35 Raspberry Pi single-board computer! You can download Swift 5, which has been ported to the ARM CPU architecture, right here. Installing is as easy as pointing your RPi to the swift-arm repo, then do
sudo apt-get install swift5 , and then run the Swift CLI with swift [filename.swift] . Neat!
Develop iOS Apps on Windows With Cross-Platform Tools
Cross-platform tools are awesome: you code your app once, and export it to iOS and Android. That could potentially cut your app development time and cost in half. Several cross-platform tools allow you to develop iOS apps on a Windows PC, or allow you to compile the app if there’s a Mac in your local network.
Well, not so fast…
The cross-platform tool ecosystem is very large. On the one side you have complete Integrated Development Environments (IDEs) like Xamarin, that allow you to build cross-platform apps with C#.
The middle ground is covered by tools like PhoneGap, Cordova, Ionic and Appcelerator, that let you build native apps with HTML5 components. The far end includes smaller platforms like React Native that allow you to write native apps with a JavaScript wrapper.
The one thing that stands out for all cross-platform tools is this: they’re not beginner friendly! It’s much easier to get access to a Mac, learn Swift, and build a simple app, than it is to get started with Xamarin.
Most of the cross-platform tools require you to have a basic understanding of programming, compilation options, and the iOS and Android ecosystems. That’s something you don’t really have as a beginner developer!
Having said that, let’s look at a couple of options:
Choose deliberately for a cross-platform tool because it fits your project, not because you think a native platform language is bad. The fact that one option isn’t right, doesn’t immediately make another option better!
If you don’t want to join the proprietary closed Apple universe, don’t forget that many cross-platform tools are operated by equally monopolistic companies like Google, Facebook, Microsoft, Adobe and Amazon.
An often heard argument against cross-platform tools is that they offer limited access to and support for smartphone hardware, and are less “snappy” than their native counterparts. Also, any cross-platform tool will require you to write platform-specific code at one point, especially if you want to code custom features.
Note: You’ll still need to compile your app with Xcode, even if you use cross-platform tools. Most cross-platform tools rely on the command-line tools that are shipped with Xcode, as part of macOS. You’ll also need Xcode to publish your app in the App Store.
Get a Second-Hand Mac
You gotta ask yourself: Why not get a Mac? Perhaps the simplest option to build iOS apps with Xcode, in this tutorial, is purchasing a Mac for iOS development.
If you don’t want to tinker with cross-platform tools, or rent-a-Mac in the cloud, and just want to get started with iOS development: get a Mac.
A simple search on Ebay shows you 1-3 year old second-hand Mac Mini’s for as little as $250. Any newer, decent second-hand Mac Mini will set you back around $450. Don’t forget that you can get a brand new Mac Mini for around $800.
A better question is perhaps: is a Mac Mini from 2015 fast enough to build apps with? I’ve built 50+ apps for iOS, Android and the web since 2009, and a fair share of those were built on a 1.2 Ghz 8GB MacBook Air from 2013. I started LearnAppMaking.com with that same trusty ol’ MacBook, and I’ve coded several successful production apps with it until 2018.
It’s traveled with me all over the world, from the beaches of Thailand, to airline lounges, to coffee shops, to coding apps with my knees behind my ears, cramped in economy class at 20.000 feet up in the air.
I don’t want to go all nostalgic on you, but I learned to code on a 100 Mhz i486 PC, when lines still started with a number. That’s a lot faster PC than the one that put man on the moon, at 46 Khz.
So, to say that a Mac Mini, or your new 2015 MacBook Pro, is fast enough, is an understatement…
If you buy a second hand Mac, make sure that it supports the latest version of macOS. Xcode and iOS versions are connected to macOS versions, so you want to buy a Mac that supports at least the current ones. You can find the max. latest version of Xcode that your Mac can run, by cross-referencing the min macOS to run in this wiki with Hardware compatibility in this wiki.
Code Swift with a Swift Sandbox
Do you really need Xcode to code apps? Ultimately, yes. But you can definitely learn Swift and code Swift without a Mac or Xcode!
Here, check this out:
func fibonacci(_ i: Int) -> Int {
if i <= 2 { return 1 } else { return fibonacci(i - 1) + fibonacci(i - 2) } } let numbers = Array(1...10).map { fibonacci($0) } print(numbers)
The above code runs in a Swift sandbox. The sandbox sends the Swift code to a webserver, which compiles it and returns the result. It’s the perfect tool to quickly play with some Swift code in your browser!
Swift is an open-source language, and that means you can effectively run it on any hardware.
Need more space for your Swift code? Check out the bigger Swift Sandbox right here!
What Does It Take To Develop Macos AppsLearn how to code iOS appsGet started with Xcode and Swift
Ready to get started with iOS development? Learn how to code iOS apps with Xcode and Swift with our immersive iOS development course. Works both on Mac and PC!
Further Reading
You can’t build iOS apps without Xcode, and you need macOS to run Xcode, and a Mac to use macOS. There’s no getting around it, except for these alternatives to run Xcode on Windows:
Awesome. I want to wish you best of luck with building your iOS app on Windows! Here are a few projects and tutorials to consider:
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |