Is there a way since (iOS 7's release) to get the UDID without using iTunes on a PC/Mac?

后端 未结 18 1617
余生分开走
余生分开走 2020-11-28 02:55

I\'m developing an app for my company and we\'re going through the process of slowly letting people into the \"beta\" by adding their iPads to the company\'s iOS Dev Center

18条回答
  •  甜味超标
    2020-11-28 03:17

    Navigate to http://get.udid.io/ from Safari on your iOS device. It works like a charm and requires neither iTunes nor any other computer. No app installed either.

    EDIT:

    Also, have a look at Getting a device UDID from .mobileconfig if you (understandably) would rather have this .mobileconfig certificate hosted on a server of yours.

    MAKE YOUR OWN:

    Have a copy of the .mobileconfig example hosted on your server and write 2-3 small scripts in your favorite language to handle the following flow:

    1. Navigate on Safari to a URL redirecting to enroll.mobileconfig below. This makes iOS open the Settings app and show the profile.
    2. Upon accepting the profile, iOS switches back to Safari and posts the DeviceAttributes array to the URL specified enroll.mobileconfig.
    3. The POST data will contain a .plist file with the requested attributes (see example below). One of which will be the holy UDID.

    Remark: You should probably have some user friendly messages. Specifically, we even have a step 0. where the user is asked to provide their name and e-mail that we store temporarily in the HTTP session and then redirect the request to the mobileconfig profile. We ultimately match this info with the iPhone data and send a friendly confirmation e-mail. HTH.

    enroll.mobileconfig

    
    
    
        
            PayloadContent
            
                URL
                http://support.devcorp.com/uuid/returnurl/
                DeviceAttributes
                
                DEVICE_NAME
                UDID
                PRODUCT
                VERSION
                SERIAL
                
            
            PayloadOrganization
            DevCorp Inc.
            PayloadDisplayName
            Profile Service
            PayloadVersion
            1
            PayloadUUID
            C5FB9D0D-0BE7-4F98-82CC-5D0EA74F8CF8 
            PayloadIdentifier
            com.devcorp.profile-service
            PayloadDescription
            This is a temporary profile to enroll your device for ad-hoc app distribution
            PayloadType
            Profile Service
        
    
    

    sample .plist POSTed by the iPhone to the given URL

    
    
    
    
        PRODUCT
        iPhone4,1
        SERIAL
        DNPGWR2VCTC0
        UDID
        b01ea7bc2237fed21bfe403c6d2b942ddb3c12c3
        VERSION
        11A465
    
    

提交回复
热议问题