Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export devices added in Apple's iOS Provision portal

Tags:

My apple developer is about to expire in 5 days. And after renewal I want to restore my devices count to 100 but meanwhile I want to export all currently added devices as backup for future use, these are 87 devices.

In new apple developer section I don't see any option to export all devices and I don't want to copy paste all 87 devices :(

Note: I want to export devices in the format required by the Apple for multiple device inserts.

like image 474
Irfan DANISH Avatar asked Apr 17 '13 06:04

Irfan DANISH


People also ask

How do I provision an iOS device?

Provision Your Device Connect your device to your Mac. Open the Devices organizer (Window > Organizer > Devices). In the Devices section, select your iOS device. Click the “Use for Development” button.

What is an Apple provisioning profile?

A provisioning profile links your signing certificate and App ID so that you can sign apps to install and launch on iOS devices. You must have a development provisioning profile to sign apps for use with iOS Gateway version 3.4 and later.


Video Answer


1 Answers

If you're looking for an option that doesn't require additional software, recordings, or fiddling with regular expressions, here's a JavaScript snippet you can run in Chrome's (or I'd assume, any other browser's) JavaScript console to get a properly-formatted device list:

var ids = ["Device ID"];
var names = ["Device Name"];
$("td[aria-describedby=grid-table_name]").each(function(){
    names.push($(this).html());
});
$("td[aria-describedby=grid-table_deviceNumber]").each(function(){
    ids.push($(this).html());
});

var output = "";
for (var index = 0; index < ids.length; index++) {
    //output += names[index] + "\t" + ids[index] + "\n";    //original
    output += ids[index] + "\t" + names[index] + "\n";      //post September 2016
}
console.log(output);

The complete export will be logged to the console, at which point you can simply copy/paste it into an empty text document, which can then be re-imported back to Apple at any time.

This works with Apple's current developer site layout, as of April 2015. Obviously it may break if they change stuff.

like image 81
aroth Avatar answered Sep 30 '22 19:09

aroth