TLDR; Question: Is there a way to prepare a an XArchive that they can then assign a provisioning profile themselves and sign using an appropriate distribution certificate?
Long Question: My client sent me a provisioning profile for an app I'm developing for them. They don't want to send me their Distribution Certificate (.p12 file).
The instructions they gave me are as follows:
- Load the provisioning profile onto your system
- In your project, choose the provisioning profile under the target's "Build Settings" within the "Provisioning Profile" section
- Do not choose a Code Signing Identity
- Run, Product->Archive
- Choose "Export as XCode Archive" when given the option to Distribute
The problem is, when executing step 4, I get the following error:
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 7.0'
Their thought was they would codesign the app on their side (thus protecting their certificate). Is there a way to do that?
Using
xcodebuild
command in terminal worked for me.This created an unsigned archive "MyApp.xcarchive" in "buildArchive" sub-directory of my project's root directory.
You may help this Question also, check that.
Was able to do this using the following technique:
Voila, build your Xcarchive via the Product->Archive and give it to your client, they'll be able to re-sign it with their own profile and certificate.