Xcode: How can I get my application on a friend's phone? - iphone

I have made an app for my iphone. I'm wanting to let my friend see the app too. I've been loading the app onto my phone by selecting my iphone in Xcode and clicking "Run". I cannot set his up to do this though since he's in another state. Is there anyway I can set it up so he can load it on his phone?

Check out TestFlight. You'll have to add his device to your account and create a new provisioning profile for his device, but then you can distribute it with TestFlight and automatically push out any updates to him.

There really isn't a way for you to share it wirelessly, but you could add his device to your account, and create a new provisioning profile with his device included, and he could download the project and run it there.

Create an ad-hoc provisioning profile and use this profile to validate and distribute your app. Don't select App Store, but the other option (can't remember what that's called right now). This will create a .IPA file, which your friend can drag into iTunes and install on his device. Note that you will need to add his UDID to your developer portal for this to work.

Related

Ad Hoc should be for development iOS devices?

Just I want to send the ipa file to my customer in order to test it, I have searched about my question, but unfortunately I did not find the answers.
When the customer want to install the ipa file through iTunes, should his iOS device be registered as a development device in developer.apple.com or no ?
Note: I have installed the ipa to my device successfully, but I don't know if it is completed because my iPhone is already registered .
Thanks.
I would give TestFlight a try. Very Easy to handle...
https://testflightapp.com
Yes, on the provisioning Portal under Device you first need to insert the UDID of the (new) device.
Then, below, in the Provisioning menu go to the Distribution tab.
There, either create a new profile or edit an existing profile. Ensure the device is part of the profile.
After submission of the new/modified profile wait a while. Within a few minutes the download button appears (you will need to refresh the tab).
Download the certificate from Safari and drag&drop it into the Xcode organizer or download it from within Xcode.
Exit Xcode and reopen (helps avoiding strange certificate problems), then Build&Archive

Testing on a second iPhone

I have developed my first full fledged iPhone app, and tested it on my phone. I would like to have it tested by one of the contributing graphic artists on their iPhone. They live in another state so I do not have access to their device. I added their Device ID to the apple portal.
A couple of questions:
I do not see the device show in Xcode when I hit refresh. Should I be seeing it?
Which executable file(s) do I send to them?
Look at testflight. It makes distributing apps very easy. Since you have already included the designers device ID, all you have to do is:
Sign up to test flight
invite the designer and tell him to register and add his device info
go to apple developer portal - provisioning - distribution and create a new distribution profile (don't forget to add the designers device when creating the profile), download and open the certificate (which will be shown in Xcode's Window>Organizer) - make sure that the correct certificates are selected in your build settings.
make sure that iOS device is selected ( and not the simulator) now in Xcode go to Product>Archive, when the archive is shown click distribute>adhoc distribution
this will create an IPA file.
upload this to test flight and follow the instructions to select the designer from your team.
Use TestFlight. It's free, takes 5 mins to install their API, and gives step by step instructions on how to push your app to any tester over the air.
Add their device id to your developer account, Update your adhoc profile (which you are using for running your app on device) attach their device with this profile. Now again sign your build with updated profile and give this APP file and provisioning profile to others or upload it on TestFlight.

Do you have to re-archive your project after adding devices to the provisioning profile?

Say you have an existing provisioning profile with some devices and you archive a target with that provisioning profile. Then, you go into Member Center and add some more devices to the profile. Do you have to re-download/re-archive the project in order for those devices to install the target app?
No, as long as the name of the profile is the same, you can now distribute apps that include it to the new devices, as long as the new devices get the provisioning profile that includes their device ID.
Edit: A note of further explanation. Your archived app does not store the provisioning profile in its archive. You merely tell it what provisioning profile to look for in order to determine if it can run on a certain device. Therefore you can change your provisioning profiles all you want, and as long as it is the same profile the app is told to look for, you never have to recompile the app to recognize new devices.
Yes, if not - how can the previous profile know that you have added more devices to it ?
You have to delete the old profile in organizer and then you need to download freshly the same profile which is configured with new devices.
Note: don't forget to check the code signing in your project settings after installing the new profile.
(OR)
If you have already configured your iOS Developer Network profile in your system,
Just press the refresh button at the bottom right of your organizer
Yes the new profile will have to be built into your app for it to work with the devices added.
You have to download again the profile (or let XCode do the work for you).
You do not have to re-archive. Just share existing archive BUT sign-again with the new/updated profile.

Getting an iOS app build on someone elses iDevice?

I'm not sure if this question has been asked before but what are the exact steps I'll need to follow to get my app which is still in development onto someone elses iDevice when all I have of his iDevice is its device ID.
What I tried doing is adding the device to the 'devices' section of my provisioning portal, then I downloaded the provisioning profile of the app and sent the provisioning profile with the compiled IPA to this person.
From his end what should he do? I told him to just drag the IPA into iTunes and see what happens.
Is that what I should be doing or is there something I'm missing?
If you have make correct provisioning profile for testing devices, then drag drop the ipa build to iTunes and sync your device. There is another alternative way for easy installation, expore testflight
What you do is correct and it should work. If you have distribution profile you don't need deviceId too.

Testing my iPad app on other device

I just tested my app out on my iPad and I want to show it to a friend. He sent me his UDID and but I don't know how I can send him the app. Please help me out , thanks.
you can create a adhoc build using his UUID. but first you have to create a adHoc provisioning profile from your developer portal. and then you can send the build and provisioning profile.
so first he has to drag and drop provisioning profile to his device then thru iTunes he can sync you app.
Nnp described the process of how it usually is done.
If you'd like to do it easy way, and by easy I mean easy to you and your beta-testers (key features to me: over the air beta distribution, no more iTunes syncing, alert when new beta arrives, statistics), try HockeyKit and optionally HockeyApp.