Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create provisioning profile without physical device (archiving for TestFlight testing)

I am trying to create provisioning profile by clicking "Fix Issue" in Target -> General -> Identity settings. It shows me popup "No Devices Registered", so it seems like I need to have a device to create a provisioning profile. Is there any workaround? I just need to archive my app and upload it to iTunes for TestFlight testing, so the devices might come from other testers ultimately (internal or external ones), but I currently do not have an iPhone with me.

like image 778
Nikita Vlasenko Avatar asked Jan 02 '16 08:01

Nikita Vlasenko


People also ask

How do I fix failed to create a provisioning profile?

3. How To Fix Xcode Failed To Create Provisioning Profile Error. To fix this error is very easy, just connect your real iOS device such as iPhone to the Mac computer with a USB line, follow the popup screen on the iPhone, then you can select your iOS device in the Set the active scheme drop down list.

How do I create a provisioning profile for free?

Step 1: Create a Free Apple ID: https://appleid.apple.com/account. (This will be used within Step 3). Step 2: Open Xcode 7. Step 3: From within Xcode 7, navigate to “Xcode—->Preferences—->Accounts.” Press the “+” icon (red arrow below) to add the Apple ID you created in Step 1.


2 Answers

First understand the meaning of provisioning profile. It says A provisioning profile is a collection of digital entities that uniquely ties developers and devices to an authorized iPhone Development Team and enables a device to be used for testing. Ok this is an old definition before xcode 7 and ios 9. So what if you click on generic ios device and then archive. Does it throw error then? Because in my experience I can make archive of the app without any device, please select generic device rather than specific one for archiving. As for credentials, you must create two certificates: One for development, which allows you to run your Xcode projects on your plugged-in devices. One for distribution, which allows you to export ad hoc builds and submit apps to the store using your certified Mac.

The bottom line is: Since you’ll be building apps for distribution, you’ll also need a paid developer account.

like image 70
Kumar Utsav Avatar answered Nov 06 '22 12:11

Kumar Utsav


You need to make sure you're code signing the application with a Distribution provisioning profile, and have your Distribution certificate installed in your keychain.

It sounds like you're accidentally code signing with a standard Development profile/certificate, which is why your app will only run on that profile's listed devices.

And you need to send invites on their email address to test the app.

like image 43
Rahul Patel Avatar answered Nov 06 '22 10:11

Rahul Patel