XCode--When do I sign with developer provisioning profile vs distribution profile? - ios

I am trying to prepare my app in Xcode 4.6 for enterprise deployment. I am getting this error: "failed to get the task for process 5057".
Under the project's build settings' Code signing identity section, I have selected the iPhone Distribution provisioning profile that I made for my app (it is valid). I did not select the development provisioning profile as my identity, b/c I'm trying enterprise distribution.
But of course, I get the error "failed to get task for process 5057". Why am I getting this error? I know that the fix is to use the development provisioning profile, but why--I want to prepare my app for distribution.
Should I have two schemes for my app, one for development and one for release? And inside the dev scheme, I use my dev provisioning profile and inside my release build settings, I use my distribution provisioning profile?
XCode has made this very confusing.

Failed to get task sounds like you're trying to run this build via Xcode on device. If that's the case, you want to use a development profile, not a distribution profile (AdHoc). If you're attempting to create an enterprise release build, you'll want to select your target and choose the iOS device option, then use Product > Archive to create a release build.

Related

Xcode Signing Failed to create provisioning profile

I subscribed to the App Developer program. I paid the fee. I've done Certificates, Identifiers & Profiles. I added the app to App Store Connect.
xcode signing
I am getting the errors above. I don't have an iPhone phone. I'm developing on my macbook computer.
xcode device
How can I resolve this error?
As I can see in image that "Automatically Manage Signing" is enabled for this Xcode project. So Xcode is trying to create the provisioning profile for you but not able to create it.
B'coz you need to add account in Xcode from Xcode -> Preferences -> Account -> Click on + icon at bottom to add a new developer account.
You need to create provisioning profiles.
Once you have created provisioning profile, download it and install on your machine.
Please make sure the certificate used in cretation of the provisioning profile must be in your machine's keychain.
If those certificates not installed in your keychiain then you will see certificate issue in Xcode.
But I would recommend to create provisioning profile manually from apple developer portal as you can see and mainly you can know that which certificate and devices are used in the profile.
You can create following provisioning profiles for your app.
Development Profile
You will be able to run/debug app on real device.
The device must be added into the profile.
This can be used for only development purpose.
Adhoc Profile
You will be able to install app on real device but not able to debug it.
The device must be added in profile to install app on it.
It acts as a release build but not a actually release build.
Generally develop send the adhoc build to client for testing of app.
App Store Profile
You will not able to run app on device using this profile.
It will be used to upload app on App Store or create the release build for distribution on App Store.

In house type profile needs "iOS Development" certificate

I have an Enterprise type apple account, I want to deploy to my testers without using device UDIDs. Then testers can manually trust my organization for testing. My Xcode version is 11.7.
The error is:
Not sure why In house type also needs development type profile?
My steps are:
Create enterprise distribution certificates link
This step I generated iPhone Distribution: xxx Limited in keychain.
Create an app identifier.
Generate the profile for archiving.
Download the profile and double click to install it.
In Xcode, "Signing & Capabilities", used the profile just installed, then comes to error:
Not sure what I have missed, please help! thanks!
Check if the Code Signing Identity under Build Settings/Signing is iOS Distribution for the Release build configuration:
I had a similar problem caused by iOS Developer had being set for both Debug and Release build configurations.

Profiling Vs Archiving - different code signing requirements?

In XCode5, is it still the case that if you want to profile a release build of your app, then archive it for distribution, you have to manually change the provisioning profiles in build settings? That's how I remember it being in XCode4 - building with a distribution provisioning profile means XCode can't hook the process on the device.
If you archive an application it is signed with the provision profile that you have indicated to use under its build configuration.
An archived app can be resigned with a different provision profile at a later time (though the organizer or command line), so in a way, they are independent of provision profile.
building with a distribution provisioning profile means XCode can't hook the process on the device.
If you build for distribution through the App Store, the program won't run at all until it has been signed by Apple. So yes, you'd still need to change the provision profile in order to run the app so that you can profile it.

How to know which distribution/development provisioning profile my app is using

Currently in development and testing phase, in order to distribute my app amoung test team I created multiple provisioning profiles and somehow managed to run my app on different devices for testing, now I want to know which provisioning profile my app is actually using? and from which certificate my app is signed?
Click the name of the app in the tree on the left. Then: Build Settings/Code Signing Identity

Test Flight Error: Invalid IPA: missing embedded provisioning profile - How do I fix this?

I'm trying to package my app up and distribute an ad hoc version via Test Flight. I've already packaged and submitted the app to the app store so I'm trying to figure out which settings I need to change to make it work for ad hoc.
When I try to upload my .ipa in Test Flight I get "Invalid IPA: missing embedded provisioning profile"
I tried following the instructions from Test Flight here: http://support.testflightapp.com/kb/tutorials/how-to-create-an-ipa-xcode-4 But there isn't even in option of "Code Signing" for me in Xcode (v4.2).
I've created an ad hoc provisioning profile and downloaded it into Xcode.
I've changed the code signing identity in build settings (for both target and project) and after archive I've attached the ad hoc provisioning profile when sharing the .ipa.
I'm still getting the error. Any thoughts on what else I might need to do?
Thanks.
The entitlements pane is now in project properties -> summary.
I would try cleaning your app, and re-archive. Make sure that Xcode recognizes your AdHoc profile. It can be quite the pain in the ass to get Xcode to pick up your profile due to conflicts in your keychain. Open Organizer, select Provisioning Profiles, and make sure your AdHoc profile doesn't have any issues. If it does, you will probably need to clear out your keychain and profiles and start nice and clean. I have a post on SO that might help you. Use Device Instead of Simulator
If you aren't having any issues with your profiles, try and just attach it after you upload your ipa file to TestFlight.
For anyone who is still experiencing this error:
I was experiencing this issue with XCODE 4.3.
1 . Make sure you have a Ad-Hoc Cert :
YouTube Tutorial
After Archiving and Selecting the Distribute via Ad-Hoc option, Make sure that you Update your list of keys. The option is at the bottom of the list. And select the Ad-Hoc cert if you just had to create one.
i.e. Product > Archive > Distribute > "Save for Enterprise or Ad-Hoc Deployment" >
Next > Code Signing Identity ** Refresh Code Signing identity **
If you are planning on distributing your application via TestFlight you will need an Ad-Hoc provisioning profile generated through your Apple Developer account.
Every application I build has at least 2, often 3, different provisioning profiles assigned to them.
Development
Ad-Hoc for outside testing
Distribution

Resources