Run your iOS app
This tutorial will guide you to run your iOS App in your own Mac under the simulator of the Xcode tool.
Our App Maker will create a complete iOS App with navigation toolbar, the icons set for all the iPhone and the iPad versions, you can push notifications to your iOS App users and get the usage statistics of your App by using the Google Firebase service (FREE) and even earn money with the Google AdMob service.
In order to run your iOS App, Apple requires you to have a Mac computer with the Xcode tool installed on it. The Xcode is the primary development tool of Apple for developing applications for the Apple products. Unfortunately, Apple release this tool for the Mac PCs only and there is no legitimate way to install it on Windows / Linux PCs. You can install the Mac OS in a Virtual Machine (such as Virtualbox) under Windows or Linux OSs and then install the Xcode on it, but this is not recommended.
This tutorial will guide you to run your iOS App in your own Mac computer under the simulator of the Xcode tool.
In the related links section you will find a more useful information of how to use more advanced features of your iOS App, such as installing it on your iPhone or iPad device, push notifications to your App users and publish your App in the Apple App Store.
Here are the stages to compile and run your iOS App in your Mac under the simulator of the Xcode tool:
Download and install the Xcode from the Mac App Store.
Download and extract your iOS App anywhere in your machine, for instance your Desktop.
Open the Terminal and redirect to your iOS App directory.
Now we need to install the CocoaPods. Type and enter:
#sudo gem install cocoapods
OR if you've got an error:
#sudo gem install cocoapods -n /usr/local/bin
Now install the Google Firebase and the AdMob pods:
Open the directory of your iOS App with the Finder, then open the .xcworkspace file.
The Xcode will open your iOS App and will do some things in the background in order to run your App for the first time.
That’s it, now you can click on the play button, the Xcode tool will open the iPhone simulator and will run your iOS App on it.
This example uses the Qrcode.Plus webapp which allows you to create a smart Qrcode lables.
- Getting Started with Firebase Notifications on iOS - Firecasts
- Implementing Push Notifications on iOS with Firebase | AppCoda
- Firebase Push notification | Swift tutorial - developerfly - Medium
- Apple Developer Program
- Apple Account Management
- Firebase for iOS Docs
- Create your own App