When I started programming mobile apps, learning the basics in xCode was one of the most difficult things I had to do. My issues were multiple: I didn’t like using a mac (sorry Apple!), my programming was limited to basic HTML, and xCode looked like a pretty formidable animal to conquer.
I spent nearly 2 weeks hitting buttons in my first foray into iPhone app development. What is a P12?! I must admit I cursed. I despaired of ever being able to get an app to build. The thought of actually being able to program upload my own app to Apple was like a dream. And I was getting pretty good at copying all my errors into google in the hope someone out there had figured out the answer.
The whole thing just seemed full of these complicated steps that were fairly involved to try and figure out, let alone do successfully, as a non techie person. So here is a quick xCode tutorial of what you need to know to make an xCode app for iPhone or iPad app.
1. PUT YOUR MONEY WHERE YOUR MOUTH IS
First up you need to be enrolled as an Apple developer for $99/year. If you sign up as an individual iPhone app developer all you need is a credit card and its all sorted in about 24 hours. If you sign up as a company then brace yourself as it’s a lot more involved, you need to prove you are actually a legal company and it can takes weeks or months to get approved. You can have multiple individual accounts and you can upgrade an individual account to a company account in the future.
2. SOFTWARE AND HARDWARE
Then download xcode on a recent-ish mac. My first mac was a second hand mac book I got for €550. It did the job perfectly. One thing to be aware of if you are buying a mac, made sure it’s fairly recent as the current iOS xcode software will not run on old macs. So double check the spec of your mac with the latest version of xcode (on the mac app store) before you buy your mac.
3. TWO NEW WEBSITES
When you get your Apple developer account, you get access to two important websites:
iOS developer center – this is where you do the certs, App IDs and update your device UDIDs. It is a bit techy.
iTunesConnect – this is where you put in the content people will see in the store, like icon, name, keywords, categories, screenshots, etc. It’s much simpler
4. CREATE MAIN DEVELOPMENT AND DISTRIBUTION CERTS
Once a year, and right at the beginning when you sign up to Apple, you need to make a main development certificate and a distribution certificate. You will make these in the iOS developer center. Click on the ‘certificates’ button as in the pic above. Then you clicking through a few steps and upload a file from your mac. Then download the two certs to your mac and double click to install them. Once you have them made, you can forget about them until next year.
5. Create P12 file (MAYBE)
If you already have an Apple account, and someone else has made these two certs for you (maybe you hired a devekoper to upload / build an app for you, and he made these certs on his mac), you will need to get a P12 made. Without a P12 certificate, only the person who made the certs can build apps with your Apple account. But the good news is that making a P12 is really easy…. here is how to make one. Once the original person who made the certs has made the P12 and emailed it to you, download it to your mac, double click on the file and then you are good to go!
6. ADD YOUR IPHONE AND IPAD
If you want to looks at apps on your iPhone or iPad, before they are published in the store then you need to add the UDID (a unique reference number each device has) of that device in the ‘devices’ section of the iOS developer center. You can add 100 devices max each year, and you can only delete them after the year is up. Here is how you find your UDID.
All everything above here you do at the start when you make an Apple developer account. Once it’s all set up you can forget about it for while anyway The next steps are what you need to do for every app you want to publish.
7. ‘APPY DAYS (SORT OF)
Log into the iOS developer center.
8. APP ID
Create an app ID. This is really quick to do.
9. DEVELOPMENT PROVISIONING PROFILE
Create a development provisioning profile on the iOS dev center (again this is fast, click through a few screens and remember the name you use). Select the app ID you just created and select the main dev cert you made at the start.
10. DISTRIBUTION PROVISIONING PROFILE
Create a distribution provisioning profile on the iOS dev center (click through a few screens and remember the name you use). Select the app ID you just created and select the main dist cert you made at the start.
Download both provisioning profiles to your mac, and double click them to install them.
A new screen should appear and you should see them in this screen. Filter by date if you have a lot of profiles already installed on your mac.
If you have got the 2 main certs on your mac, and you have made these little prov certs correctly, there’ll be a green tick beside them. If they are red back to the drawing board as they won’t work in your app.
11. BUILD YOUR APP
You should have all the correct certs etc on your mac. Now open xcode, and open your app. If you hit ‘run’ the app should build in the simulator on your mac and you’ll be able to see it.
If you want to see the app on your iPhone or iPad, then you need start to figure out where you type in your bundle ID / App ID, and where you select the correct development provisioning profiles, that you have just downloaded to your mac. Do it all correctly, plug in your iphone and hit ‘run’. The app will build on your iphone. This is a Big Deal to get this far!
Once it’s running nicely on your iPhone, then log on to iTunesConnect and set up your screenshots, iphone app keywords, in app purchases, app name, app icons, etc.
13. FINAL DISTRIBUTION PROVISIONING PROFILES
Once thats all done, then its back to your mac again. Now you need to change your selected certs to your distribution provisioning profiles that you downloaded earlier. Here is quick way to upload your app from your mac to the store.
14. UPLOAD TO APPLE
Now to create an xCode build and submit iOS app to app store.
15. WHAT TO DO WHEN IT GOES WRONG
It’s unlikely you will get through this process without errors the first time round… and it does seem a lot can go wrong, speaking from experience. Three things will make it easier though:
1. If you get an error (and there are thousands!!) copy the error into google and do a search
2. The first time is the worst and it definitely gets better. When you start to recognise the errors you know you are on the right path.
Do you have friends reskinning iPhone apps? If you loved this content please share it with them.
Latest posts by Elaine Heney (see all)
- How I made $6754 with Amazon’s newest print on demand platform - November 5, 2016
- How to build a 6 figure, 15 product Amazon FBA business in 10 months with a Virtual Assistant - February 9, 2016