Ad Hoc should be for development iOS devices? - iphone

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

Related

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.

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.

Share my iPhone app for testing

I'm writing a new iPhone app and want to share it with a couple of friends for testing and general feedback and sign-off. Is there a way I can do that?
They are located in a different state, and they don't have a Mac either.
Edit: I wrote this post a long time ago. Since then, services such as TestFlight have come along which do this entire process. This is really the way to go!
You need to make an ad hoc build which your friends can install on their phones. It's a bit of a pain, but basically, the procedure goes like this:
Go to the Apple Developer Center's Provisioning Portal and register their device ID's. You will need to have your friends give you their device ID's, which can be done by clicking on the "Serial Number" field in iTunes on the device page.
Generate a distribution certificate for ad hoc distribution in the Provisioning Portal under Provisioning -> Distribution
Download that certificate yourself (the .mobileprovision file) and install it into Xcode by dragging it on the Xcode icon.
Duplicate your "Release" build setting in Xcode for an Ad Hoc build. Everything should be the same as Release, except in the "Code Signing" section you will want to select the new Ad Hoc profile generated in step 3.
Make an Ad Hoc build by going to Build -> Build and Archive
When Xcode brings up the organizer window, right click on the archived build and make a .ipa file by saving it to disk
Tell your friends to drag the mobile provisioning profile to the iTunes icon (or with File -> Open for windows users) to install it on their phone.
Tell your friends to drag the .ipa file you made into iTunes, and sync their phones
At this point, the app should be installed on their phone, but lots of things can go wrong, so you should definitely read Apple's documentation on the subject as well.
Note that this procedure won't work unless your friends are using iTunes to sync applications with their phones. Also, as noted, you will need to be a paying developer in ADC to even access any of the Provisioning Portal stuff.
You need to create an ad-hoc provisioning profile and build your app with that. Then send both a .zip compressed build and the profile to your friends (maybe over e-mail). They don't necessarily need Macs... Windows will do just fine, as long as they have the latest iTunes installed.
There's more information (including how-tos) at the iOS Provisioning Portal.
All this assumes you've paid your $99 and are a registered iOS developer.

Is it possible to Test iPhone Application on Actual Device rather than Simulator?

I wants to test my own application to my actual iPhone Device rather then simulator.
So, is there any chance to do so with ?
I have an apple developer account.. But don't know the procedure, Please help me if u have any solutions..
Thanks in advance...
Log in to http://developer.apple.com/iphone/ with your developer id and password.
Then:
http://developer.apple.com/iphone/manage/team/index.action and set up your team.
http://developer.apple.com/iphone/manage/certificates/team/index.action to create your certificate
Download the certificate you just created and double click on it to run Keychain Access and install it.
http://developer.apple.com/iphone/manage/devices/index.action to enter your iPhone's id
http://developer.apple.com/iphone/manage/bundles/index.action create an appID
http://developer.apple.com/iphone/manage/provisioningprofiles/index.action to download a provisioning profile
Drop that provisioning profile onto Xcode
Go into your project's info.plist and change your Bundle identifier to be the same as you used for the provisioning profile, minus everything up to the first "."
Go into your project's Build Info, and select the appropriate Code Signing Profile
I think now you're ready to go. Select an iPhone Device from the pop-up menu in your main project browser window, plug your iPhone in and let Xcode see it, and then Build and Run.
You can, but as iPhone applications need to be signed - you need to be a paid developer. It is then a case of logging into the portal, assigning a test device, application settings and then downloading a provisioning certificate.
The procedure is cumbersome, however it is very well documented.
You need to create your Developer Certificate and a Certificate for your software projects.
Go to http://developer.apple.com/iphone/, log in and click iPhone Developer Program Portal on the right side. You will find a "launch Assistant" there that will guide you through the next steps. It's pretty easy.
You have to join the iPhone Developer Program, which is $99 for the Standard Program, $299 for the Enterprise Program.

Code Sign Error When Building iPhone Application

I am new to iPhone development. I just registered with Apple for the iPhone Developer Program. When I try to build, I am receiving an error:
Code Sign error: a valid provisioning profile matching the application’s identifier could not be found
I'm not sure what is wrong. I tried browsing the Internet but I get confused. Can anyone help me with what I should do?
At first it seems a complex process, but it's pretty straightforward when you've been through it a few times.
In a nutshell the process is this:
(I'm assuming you've set up your iPhone/iPod touch as a test device)
Via the iPhone Developer Portal
Create an App ID
(give your application a name, this is just for reference on the website and nothing to do with your own build of your application)
enter a string to identify it, like com.yourcompany.appname
(this is important and should be the same as in your .plist file inside Xcode)
Click and Save this
Go to Provisioning
There are 2 provisioning profiles you'll need
a) development - so you can install your application on a test device (i.e. your iPhone / iPod touch)
b) distribution - if you want to sell the application via the App Store
You can create the profiles by selecting your App ID, created in the previous step, from the drop down list and clicking Save
In a few moments (usually, though it can be longer) the certificate is available for download. Download this to your Mac and drop it onto the Xcode icon. Sometimes the development profile doesn't work for me like this and I drop it directly into the Organiser window in Xcode that shows my connected device.
Besides, if you are in a team account, team admin need to edit Development Provisioning Profiles, and add modify your certificates privilege.
In Xcode inside 'Edit Project Settings' you can select the certificate you wish to code sign with. Usually for debug I sign with the development certificate. Follow the instructions on the apple site and clone the release profile and call it something like release and sign this with your distribution profile. (You won't be able to load the app onto your phone with the distribution profile selected)
Make sure you select the target device as Device and not Simulator when building for the App Store!
Hope that helps, it's from memory so apologies if I've skipped some small steps.
xcode top left corner make sure you're running as "similator" "iphone"
Did you set up an iPhone provisioning profile for either development, ad hoc distribution, or app store distribution?
If not go to the iPhone developer program portal, which is linked from the developer.apple.com/iphone. Apple has provided a great series of video tutorials.
Just make sure you install the certificates or the profile won't be selectable in the project configuration. When you download the certificates double-click on them to install.
Possibly more use for others seeing this issue on a previously configured dev environment.
This error is also shown if your provisioning profile has expired, in this case you can go through the steps in Neosionnach's answer or you can go to Organizer, click on the profile and click Refresh.
This was the winner for me when I had this issue.
As of July 2012, you can go here:
https://developer.apple.com/ios/manage/overview/index.action
Then launch the "Development Provisioning Assistant." It walks through all the steps outlined by FiddleMeRagged.
You can use this process to create a Wildcard ID, if you're just looking to test your app on your iOS device and don't need to deploy to the App Store right away.