Hey there Coder,
If you joined us for our very first mobile games session, but were unable to get the sample game running on your iOS device because we ran out of time, fear not! We have the technology to make it go!
There was one slight but gargantuan omission in our instructions. You need Apple's development tools to build and install games for iOS devices.
Don't worry, getting the tools themselves is free of charge and easy to do assuming your Apple operating system is up to date.
Go ahead and open the App Store on your Mac computer. The rightmost tab is "Updates"
If you have an operating system update, you might need to restart your computer. Once the OS X updates are installed, you can move on. You do not need to upgrade any installed Apps.
Alright, now that our operating system is up to date, we can install Apple's developer tools. They come bundled with a development environment called XCode that we're going to ignore once we've completed this setup process.
Reopen the App Store you closed it and search for "XCode". It will almost always be the first result. Make sure you get XCode, made by Apple and not some other thing. The XCode app is the only one you need.
Click Install and go clean your room. This download will take a while.
Did you get your room cleaned? Your homework done? The kitchen floor waxed? XCode Installed? That took a while. Make sure it's finished before you move on otherwise the next steps will be useless!
Now you need the developer certificate and provisioning profiles. These are tools that Apple requires every developer use to verify the integrity of the application and ensure that only individuals who gave you permission to install apps on their devices can run them.
To get the Certificates and Profile, head to this page on GitHub. You do not need a GitHub account for this, don't worry.
Download both CoderDojoSVFall2013.mobileprovison and CoderDojoSVFall2013.p12
Once the download is finished, open the .p12 file. You'll be prompted for a password for the certificate. The password is "Go Go CoderDojo". You can now add the certificate to your keychain. Doing this may prompt for your keychain password, which you set up with your computer.
Next open the .mobileprovision file. This will cause the XCode Organizer to open. If you see a green checkmark next to the profile, you are good to go. If not, email [email protected] with a screenshot of what you do see.
Open the Corona Simulator with the sample game. Select "File > Build > iOS" and select the provisioning profile for the build.
When it's finished building you will get some warnings about not passing Apple's standards which you can ignore for now. Click the "Show in Finder..." option then drag the program to the iTunes icon on the dock. Once you've done this, you can connect your device to the computer using your USB cable and copy the app to your device using iTunes.
Lastly, test it out on the device!
If you have any trouble with this process email [email protected] and we'll do our best to get mentor attention. Screenshots attachments are really handy in debugging problems remotely. Command + Shift + 3 takes a screenshot and saves it to the desktop on Mac OS X. If you send multiple screenshots, make sure you rename the files so it is clear.
Do Windows/PC users with iOS devices just continue to use the simulator?