Provisioning profile and developer certificate - iphone

At what stage of a iPhone app development do we need provisioning profile and developer certificate? What are their importance and from where we get them? And how do we distribute our iPhone app for testing by other users and finally to end customers in App Store, using provisioning profile or developer certificate or something else. Please throw some light on this matter!!!

You can develop apps for the iOS Simulator for free. If you are not yet testing your apps on actual devices, and are not submitting apps to the App store, then you don't need developer certificates.
When you get to the point you are doing either of the above, then you will need certificates and provisions, and can read about how to use them here in the Development Guide and here in the Store Resource page on Apple's developer site.
You will need to read and follow the instructions in these documents very carefully. Don't depend on any quick answer or assumptions.

A developer account will allow you to not only test on your device, but also to generate provisioning profiles for "ad hoc" provisioning, which allows you to share apps with up to 100 devices a year (your beta testers/clients/etc.).
You can't submit an app to the App Store before you have a developer account; and you shouldn't submit an app before having tested it on at least one device.

Related

ios-provisioning-portal for PushSharp

I want to develop demo application at my development machine.
Here I want to use pushsharp for mobile Notifications and further I want to use it on
iphone.
For pushsharp integration with iphone I requires ios provisioning
reference: https://github.com/Redth/PushSharp/wiki/How-to-Configure-&-Send-Apple-Push-Notifications-using-PushSharp
But https://developer.apple.com is asking for $99 dollars for it use.
So here my question is that Is there any free/developer key is available to this or I need to purchase this.
I need to show some demo before going to purchase any thing.
please help me on this.
Thanks
Apple recommended that developer use the code singing when they want to test application on device. So for that purpose developer have to purchase such a/c. for create provisioning profile and certificates.
you can found more information at developer portal regarding setup profile check this. Also for APNS have to set that enabled in your app id.
You can test your app in Simulator without purchase of $99.
But if you want to test your app in physical device then you must have to purchase developer account of $99.
Also if you want to test APNS then also you need this purchasable account.
So, I recommended to purchase it for other benefits as well.

Adding Tester to TestFlight

If I add a tester to TestFlightApp.com They get a link to register their device. This then downloads a profile, which is called TestFlight Access. Not for my app.
What is this profile for and how does it relate to my app?
Also do I still need to add the tester's UDID to the apple developer portal, myself?
That profile allows the service to gather the UDID of the testers device. This way the user never has to manually search that UDID and it is possible for the service to provide developers who invite users that information automatically.
Additionally, the installed web clip will authenticate the device against the service, so the apps that can be installed will be offered. These apps are found by comparing the UDID of the device against the provisioning profiles of all apps available.
So yes, you still need to add the UDID to the provisioning profile and compile your app against it.
The profile process is provided by Apple and well documented here: http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009505
There are also other services who leverage that functionality for "easier" gathering of UDIDs and providing an easy way to let users download their beta apps.
I'm jumping in here to say, yes you do need to re-build your app with a new profile that includes the new tester's device UDID. I'm having a problem with this for one tester only, that no matter what I do TestFlight refuses to acknowledge that the profile I am using has this one person's UDID in it yet it does. I'm writing to their support group about it and will let the forum know what I find out if anything useful.
The profile allows the test flight app to install your app. And yes, you will still need to add their UDID to the provisioning profile.

app store distribution provisioning profile from different account than the one to submit to itunes

I have developed an iphone app for a client. Can I code sign app against the appstore distribution provisioning profile generated from my apple developer account, send it to the client & let him submit it to apple itunes from his apple developer account?
As i learned from my experience, this is not possible. You need to have the provisioning profile generated from the same developer account which you want to use to publish to the appstore.
Basically yes, but look into the xcode 4 archive organizer. You can share an archive with another Xcode. From there it seems to be possibe to do a re-signing. Since your client must use anyway his xcode for submitting to the AppStore, this might be a way to go.

What is an Ad Hoc certificate for iOS test app distribution?

I'm developing a iPhone app and need to send it to my client. In turn, my client will distribute it to many other people for end-user testing.
What kind of Provisioning Profile, Certificate, or Code Signing will accomplish this task? I've heard something about Ad Hoc certificates; is an Ad Hoc certificate relevant for this task?
Yes, ad hoc is exactly what you need for massive end user beta testings.
There is a very thorough and comprehensive tutorial about this, right from Apple. Log into your iOS dev center account ==>> iOS Provisioning Portal ==>> Distribution ==>> Prepare App
Yes, at this point the Ad-Hoc distribution certificate is what you are looking for. The Ad-Hoc certificate allows you to build your app to run on a predetermined list of devices. There are a couple big caveats though:
You need the UDID of every device you want the app to run on.
The user needs to install the provisioning profile for the app as well as the device manually. It's a simple case of dragging and dropping to iTunes - but we're dealing with normal people here... Not programmers.
To Create One: You add all the UDIDs for testing to iTunes Connect and then create a new ad-hoc distrubution profile and certificate. Build your app with the new certificate and the users should be good to go.
What I recommend: TestFlight
Testflight allows you to simplify this process immensely. You just build a normal debug IPA and then put it on TestFlight. They have their own global provisioning profile the users install and run the app with. It's as seamless as mass testing on iPhone can be (Granted, that's not a high bar).
Good luck :)
Note that Ad Hoc certificates are no longer used in the new Apple TestFlight. Testers are no longer added via UUID.
Test Flight builds now require an App Store Distribution Provisioning Profile. The portal does not allow UUIDs to be added to this type of provisioning profile.
Instead, add "Internal Testers" via iTunes Connect:
Internal testers are iTunes Connect users with the Admin or Technical role. They can be added in Users and Roles.
After adding a user, be sure to click on their name and flip the "Internal Tester" switch.
Then, go to App > Prerelease > Internal Testers and invite them to the build.
You can create ad-hoc testing certificates. Your client won't be able to distribute it to "many other people" though. You'll have to know all their device UDIDs and you'll have to add them to your provisioning profile. Remember you can only add upto 100 devices to your account.

iOS provisioning portal - have to be a paid dev?

I am a new iphone dev.
The book i am reading does not mention this but do I have to be a paid dev to access provisioning portal?
You need to be an iPhone Developer which costs $99 a year. You don't need access to be a developer mind, you just can't publish to a device or to the app store without it.
When you log in to the Apple Developer website you have access to tonnes of resources to help you. $99 a year is a good price I think, given what you have access to. You need access to the provisioning portal allows you to publish to an iPhone/iPad and on to the app store. But if you don't want to pay, you can still have access to the SDK