Can not identify iPhone provisioning profile - ios

I have two distribution profiles one for app store and other for creating ad hoc. I forgot to name these profiles properly and i cant distinguish which is app store profile and which is ad hoc. Is there any way to find out this using there two provisioning profiles? I dont have access to developer account so that I could download both profiles from there. Thanks in advance.

Yes, When you archive the app you select between provisioning for app store and for enterprise or ad-hoc distribution.
Also another trick is when you select the provisioning profile and try to run it on the iphone the App store one will not install on the device, but the ad-hoc provisioning profile will allow you to put the executable on the phone.

My finding is
If a profile is Ad-Hoc distribution profile, then there will be tags like
<key>ProvisionedDevices</key>
<array>
<string>UDID1</string>
<string>UDID2</string>
<string>UDID3</string>
</array>
<key>TeamIdentifier</key>
here UDID1, UDID2 are unique ids of devices added to this profile.
Developer profile also have this kind of 'ProvisionedDevices' tag. But a Appstore distribution profile will not have 'ProvisionedDevices' tag in provisioning file. So we can open the mobile provisioning file and search for tag 'ProvisionedDevices' to identify which is the profile.

Related

How to install iPA to specific devices using Distribution Profile

I have got a strange requirement from my client. I need to install iPA with distribution Profile to selected devices. Previously I have done the same with developer profile and Adhoc-Distribution profile. If I create iPA with distribution profile, however, I don't get any option to check UDID of the devices before installing. Third party MDMs are not permitted by the client.
I need a solution for checking the UDID of the devices by using distribution profile before installing. MDMs are not permitted and I have already tried developer profile and Adhoc-Distribution profile.
I need to install iPA with distribution Profile to selected devices.
You are describing an Ad Hoc distribution. When you create the Ad Hoc distribution profile at the Member Center web site, you get to specify the devices. That is exactly what an Ad Hoc distribution is: an app associated with a list of specific devices that it can run on.
But if i create iPA with distribution profile, i didn't get any option to check UDID of the devices before installing
With an Ad Hoc distribution profile, you specify the devices (by UDID) at the Member Center. You don't need any further "option". If you export for Ad Hoc distribution using this profile, the app will not run except on the listed devices, which precisely meets your requirements.

How to send an Ad Hoc to a device I do not own

Creating an app for a customer and am not certain how to distribute the app Ad Hoc.
I added an Ad Hoc distribution provisioning profile on the apple developer portal.
I then exported an archive using that distribution provisioning profile through xcode.
Uploaded that archive to Diawi.
User receives install error.
Is this due to the fact that I do not have his particular device in my provisioning profile device options to select from?
How would I go about doing this?
I.E. in the listening when I add a new distribution profile for Ad Hoc I get to the page that says "Select the devices you wish to include in this provisioning profile. To install an app signed with this profile on a device, the device must be included."
And I do not own their device so I cannot add it to my list.
You need to get their Unique Device Identifier (UDID) and add it to your list of devices. You do not have to "own" the device but do need their UDID.
Here is a site showing how to get the UDID from iTunes:
http://whatsmyudid.com
You can also get it from Xcode:
http://www.raywenderlich.com/2915/ios-code-signing-under-the-hood/organizerudid

Can i use same distribution profile for both app store and adhoc

I created one distribution profile for app store and i uploaded my app to app store.
Now i want provide my app to customers directly with ad hoc distribution. Is it possible to use same provisioning profile for both.
No, Appstore provisioning profile is for AppStore only.
Aslo for an Ad-Hoc provisioning profile you need to select on which device it will run.
No you can't, you have to create a provisioning profile for each.
the below SS explains the difference between both

App store provisioning profile

I created one distribution profile for app store submission. Can i test my application in device with the same profile.
Or otherwise i need to create some other profile with ad hoc distribution?
You can not use an app store provisioning profile to test on a device. You can use an ad hoc profile, or a development profile.
Both ad hoc and development profiles require you to specify your device id.
The difference between an ad hoc and a development profile, is that a development profile can be used to debug. That is, you can use Xcode to build and install the app right on your device, and then step through code as the app is running to see values variables hold etc.
An ad hoc profile allows you to build an .IPA file and share that with beta testers (assuming of course you included their device id in the profile, or you have an Enterprise account/profile). They can install the .IPA file via iTunes (so they don't have to be a developer, or on Mac for that matter).
Yes, you have need to create ad hoc distribution profile for test. You cann't test with distribution profile(app store submission). read this About Store Provisioning Profiles and Creating Store Provisioning Profiles
Sorry!! you can't.
App Store > create a distribution provisioning profile to submit to the App Store
Ad Hoc > create a distribution provisioning profile to install a limited number of registered devices.
So you need to create a new Ad Hoc type distribution profile to install your device.
The answer to your question is 'NO'. You can not use 'store distribution provisioning profile' for testing your app on a device. It is intended to be used only for submitting your app to App Store.
To test your app before you submit it to App Store, you need to create separate 'ad-hoc distribution provisioning profile'. This will help you to beta test your app before submission as refered here..
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/TestingYouriOSApp/TestingYouriOSApp.html#//apple_ref/doc/uid/TP40012582-CH8-SW1

Ad-Hoc distribution with Team Provisioning profile

According to the Apple docs, one must create and use a distribution certificate and a distribution profile for distributing an app ad-hoc.
"To use ad hoc distribution, create a distribution provisioning profile specifying Ad Hoc as the distribution method and include a list of up to 100 devices authorized to run the app."
http://developer.apple.com/library/ios/#documentation/ToolsLanguages/Conceptual/DevPortalGuide/CreatingandDownloadingaDistributionProvisioningProfile/CreatingandDownloadingaDistributionProvisioningProfile.html
Well, this is not neccessary i have found out. You could easily distribute an app ad-hoc with just the developer certificate and the team provisioning profile.
Is it a bad idea to use the team prov. profile and just a developer certificate?
Why should i create an ad-hoc dist. profile if it's more easy to just use the team prov. profile?
Distribution builds have the property that cannot be debugged (that's what the get-task-allow property in the entitlements plist is for). This means that others cannot attach a debugger to your code and achieve undesirable results.
Distribution builds are required if you want to allow remote users to download the application via an App Store (Apple's or enterprise).

Resources