Export devices added in Apple's iOS Provision portal

后端 未结 10 1382
予麋鹿
予麋鹿 2020-12-25 14:41

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 ba

10条回答
  •  礼貌的吻别
    2020-12-25 15:06

    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.

提交回复
热议问题