IOS App Build profile (i) through description file

Source: Internet
Author: User

Recently the company has arranged a project client's needs as follows

1. The app generates a description profile (that is, do not use Apple configuration) after entering the APN parameter. App, now called Apple Configurator.app

2. The description file needs to be installed directly on the machine

The rest will not be said.

I do not, so the online search a few articles, useful not much. But one of the important hints is the name of a PDF: Enterprise_deployment_guide_ch.pdf. There is no link to the book Apple official website, at least I did not search. Not many degrees Niang still good, can download to. Here are some important parameters and formats for the iphone configuration file.

The example in the PDF appears to be written in XML, but it's a little bit of research. The format of XML is Apple custom, I guess is not plist. Fortunately, I guess I'm right ...

1 <?XML version= "1.0" encoding= "UTF-8"?>2 <!DOCTYPE plist Public "-//apple//dtd plist 1.0//en" "Http://www.apple.com/DTDs/PropertyList-1.0.dtd ">3 <plistversion= "1.0">4 <Dict>5     <Key>Payloadcontent</Key>6     <Array>7         <Dict>8             <Key>Payloadcontent</Key>9             <Array>Ten                 <Dict> One                     <Key>Defaultsdata</Key> A                     <Dict> -                         <Key>APNs</Key> -                         <Array> the                             <Dict> -                                 <Key>Apn</Key> -                                 <string>1</string> -                                 <Key>Username</Key> +                                 <string>2</string> -                                 <Key>Password</Key> +                                 <string>3</string> A                             </Dict> at                         </Array> -                     </Dict> -                     <Key>Defaultsdomainname</Key> -                     <string>Com.apple.managedCarrier</string> -                 </Dict> -             </Array> in             <Key>Payloaddescription</Key> -             <string>Xxxx</string> to             <Key>Payloaddisplayname</Key> +             <string>APN description File</string> -             <Key>Payloadidentifier</Key> the             <string>Xxxxxx</string> *             <Key>Payloadorganization</Key> $             <string>Xxxx</string>Panax Notoginseng             <Key>Payloadtype</Key> -             <string>Com.apple.apn.managed</string> the             <Key>Payloaduuid</Key> +             <string>9a8c3a97-4fdf-49ba-979d-b256ecd73427</string> A             <Key>Payloadversion</Key> the             <integer>1</integer> +         </Dict> -     </Array> $     <Key>Payloaddescription</Key> $     <string>Description file for device configuration</string> -     <Key>Payloadversion</Key> -     <integer>1</integer> the     <Key>Payloaddisplayname</Key> -     <string>Apn</string>Wuyi     <Key>Payloaduuid</Key> the     <string>Dc8ad461-a7e3-4e0c-b656-a556457644ac</string> -     <Key>Payloadtype</Key> Wu     <string>Configuration</string> -     <Key>Payloadorganization</Key> About     <string>Xxxxx</string> $     <Key>Payloadidentifier</Key> -     <string>Xxxx</string> -     <Key>Payloadremovaldisallowed</Key> -     <false/> A </Dict> + </plist>

Like to try the coder, you can see in Xcode a plist or. mobileconfig file to copy the code in. TIPS: The XML can be directly read, no, right click->open as->ascii Property Plist and then you see the familiar Plist structure ...

Please refer to the above-mentioned PDF for the configuration parameters. Explain a bit of configuration is two pieces one is root is the outermost frame, many parameter pdf has a description; Root has a configuration, similar structure, that is the configuration of the body (can have multiple principal configuration), then Plist is a nsdictionary, read the words should be no problem.

Well, we've seen the description of the document.

To be Continue ...

IOS App Build profile (i) through description file

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.