How to Test the App on an Actual iPhone Here are my raw notes written on November 2, 2013. I need to get a provisioning certificate for the app. 1. Login: http://developer.apple.com/membercenter 2. go to "Certificates, Identifiers & Profiles" --Go here to get certificates, add devices, etc. 3. Identifiers I think I need a unique ID for my "Crack the Code" game. Choose "App IDs" Click + symbol to register a new one. Here is what I entered: App ID Description: Crack the Code App ID Prefix: [I just used my "team ID" which seems to correspond to my "company"] I then chose "Explicit App ID" and entered this for my Bundle ID: com.nowhereroad.crackthecode I then followed the directions given to register it. 4. Provisioning Profiles > Development Click + symbol to request a new one. Development Choose "iOS App Development" (Create a provisioning profile to install development apps on test devices) [Note: This is also where you get the "Distribution" profiles.] Click continue. 5. Select App ID I selected the one I just registered for "Crack the Code". Choose to "Create Certificate." "What type of certificate do you need?" General choices were Development and Production, I chose "Development > iOS App Development" 6. Next page showed the following: ---------------------------------------------------- To manually generate a Certificate, you need a Certificate Signing Request (CSR) file from your Mac. To create a CSR file, follow the instructions below to create one using Keychain Access. Create a CSR file. In the Applications folder on your Mac, open the Utilities folder and launch Keychain Access. Within the Keychain Access drop down menu, select Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority. In the Certificate Information window, enter the following information: In the User Email Address field, enter your email address. In the Common Name field, create a name for your private key (e.g., John Doe Dev Key). The CA Email Address field should be left empty. In the "Request is" group, select the "Saved to disk" option. Click Continue within Keychain Access to complete the CSR generating process. ---------------------------------------------------- So, I just followed these directions to the letter. (I did have an old CSR that expired, so I chose to replace it.) Next, choose to Upload CSR file (and read the info on the screen). 7. Choose File... I navigated to the CSR that I just downloaded, in order to upload it. I then clicked "Generate" (I think). The next screen said that "Your certificate is ready." It expires on Nov. 2, 2014. 8. Choose to "Download." ------------ Not sure what to do next! So, I checked my old notes... I downloaded the provisioning profile, then dragged it onto the Xcode application icon to install it. I still needed to create a provisioning profile. I followed all the steps, even selecting which device to put it on. The App ID I just created for "Crack the Code" was there waiting for me. I gave it the profile name of "Crack the Code". Click "Generate". Click to "Download" the provisioning profile. (It expires Nov. 2, 2014.) At that point, the only choices were "Add Another" or "Done." I chose done. I first transferred it from the download folder to my "Apple Certificates for Lloyd" on my desktop. I then dragged this file to the Xcode application icon in my dock to add it to Xcode. 9. Here is a brief, but good tutorial from LiveCode: http://lessons.runrev.com/s/lessons/m/4069/l/23075-how-do-i-build-an-iphone-application-for-ios "Once you have registered appropriately as an iPhone developer and setup your certificate and obtained a provisioning profile, you can deploy your application onto a real iPhone, iPad or iPod touch. To do this, simply choose your provisioning profile from the drop-down list in the standalone application setting screen, and then select "Save as Standalone Application..." from the file menu." I then went to LiveCode, opened "Crack the Code," and went to the Standalone Application Settings. I chose iOS. And, voila, "Crack the Code" was available as a provisioning profile! 10. Putting the app onto the device To put the standalone application onto the device: 1) Open Xcode 2) In the 'Window' menu select 3) "Organizer" 4) Drag your App bundle into the 'Applications' pane You app should now be on your device! =================================================================================== THE FOLLOWING ARE NOTES ON SUBMITTING THE APP TO APPLE'S APP STORE. THESE NOTES WERE TAKEN IN DECEMBER, 2012 AS I SUBMITTED THE APP "LUNAR HOTEL SHUTTLE." =================================================================================== iTunesConnect https://itunesconnect.apple.com Logged in with my Apple ID. Click on "Manage Your Applications" On this page, there are two good video tutorials: -Adding an App -Delivering Your Binary On this page, there is also a link to a "Developer Guide." The guide comes up in HTML, but there is a link to a PDF of it in the top right corner of the screen. This is a very informative guide. Notes from the Adding an App video: Company name - cannot be changed later SKU number can be any alphnumeric string; just for your use. Version number: 1.0 Description (used in the app store) Keywords: comma separated (cannot be changed after the app is submitted, but can be changed when an update is submitted) Support URL App URL Review notes: comments for the apple reviewer (optional) Large icon Screen snapshots: 1 required, up to 4 more -------------------------------------------------------------------------- Here are some notes I took while consulting the following Lynda.com course: Distributing iOS Applications Through the App Store (with Bill Weinman) The needed certificates: WWDR intermediate certificate --added to keychain Developer Certificate -first need a Certificate Signing Request (CSR): 2048 bits/RSA Distribution Certificate -Requested through the key chain -User email address and Common name must match that in the Developer Account (Common name must match the company name) -------------------------------------------------------------------------- As I was submitting to the iTunes Connect, I discovered I needed to upload the following: Large app icon: 1024X1024 and at least one of the following: 3.5-inch Retina Display Screenshots: 640X920 4-inch Retina Display Screenshots: 640X1136 iPad Screenshot: 768X1004 I quickly resized my icon and screenshot accordingly. After saving: Apple ID: 580954161 -------------------------------------------------------------------------- I logged into iTunesConnect and chose to create a new app. I used the following as metadata: App Name: Lunar Hotel Shuttle Description: Lunar Hotel Shuttle Bundle identifier: com.nowhereroad.lunarhotelshuttle DDZ426YZZ4.com.nowhereroad.lunarhotelshuttle (Bundle Seed ID is the first part of this.) SKU: lunarhotelshuttle20121121 [I used the recommendation in Lynda.com; I used today's date as part of it: Nov 21, 2012] Bundle ID: Lunar Hotel Shutle - com.nowhereroad.lunarhotelshuttle Version Number: 1.0 keywords: moon, space, science, physics, educational, fun Description: This is a space fantasy game where you control a special space shuttle as it lands on the moon. It is the year 2092 and NASA has built a hotel on the moon. Because the moon's gravity is about one sixth that of earth, they were able to build it six times bigger than the biggest hotel on earth. It is so big that elevators are not possible. Instead, NASA has built a new type of space shuttle to take hotel guests to their rooms. In this game, you control a small shuttle dropped from the main space shuttle and your task is to safely land it on the correct floor of the lunar hotel. Although set in a fantasy context, this game accurately simulates the physics principles of gravity, velocity, and acceleration. ------ After completing the submission process, my app's status was "Waiting for Upload." ------ THE FOLLOWING EXPLAINS AN IMPORTANT STEP THAT IS EASY TO MISS.... I created a distribution certificate and then a distribution provisioning profile. I thought I had correctly installed these (as per the Lynda.com course and the videos on the Apple Develop member center). I then tested my app one last time. I then created a standalone application. I zipped the file. I launched "Application Loader" (location: Macintosh HD:Developer:Applications:Utilities) I then followed all of the steps, but continually got the following error when I tried to upload the binary: "Application failed codesign verification. The signature was invalid, contains disallowed entitlements, or it was not signed with an iPhone Distribution Certificate." After spending about 2 hours doing google searches on this error, I got the clue that I was still using the developer certificate & profile and had to use the distribution certificate & profile. I didn't know how to make the switch and thought this was done either through Xcode or the keychain. The way to make the switch turned out to be very simple: Go into LiveCode and into the "Standalone Application Settings"; then click on "iOS"; then and switch the profile from the developer to the distribution profile. I then created a new standalone application, zipped it, went back to "Application Loader" and tried again. It worked! The LiveCode Tutorial PDF titled "How_do_I_Submit_an_iOS_App_to_the_App_Store_.pdf" does not include this step! (To find this and other lessons, go to http://lessons.runrev.com/ ) [There was also some comments on the various forums about not having a long application name, so I also reduced the length of the binary name (also done within the "standalone application settings" of LiveCode. However, I don't think my original name caused any problems.]