1

它是使用 APNs 的 MDM。在组合配置文件中允许添加和删除应用程序。使用iOS5的iPhone。尽管“iTunesStore”的“免费应用程序”的安装是由iOS的MDM通过以下方法执行的,但它没有成功。这种方法有误吗?请教我正确的方法。

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
       <?xml version="1.0" encoding="UTF-8"?>
    <plist version="1.0">
       <dict>
          <key>CommandUUID</key>
          <string>995761bc0ac0f311452f050a3e4be157ca2dda75</string>
          <key>Command</key>
          <dict>
             <key>RequestType</key>
             <string>InstallApplication</string>
             <key>iTunesStoreID</key>
             <number>338761996</number>
             <key>ManagementFlags</key>
             <integer>1</integer>
          </dict>
       </dict>
    </plist>
4

3 回答 3

7

数字标签替换为整数

IE,

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
         <dict>
              <key>CommandUUID</key>
              <string>4424F929-BDD2-4D44-B518-393C0DABD56A</string>
              <key>Command</key>
                   <dict>
                        <key>RequestType</key>
                        <string>InstallApplication</string>
                        <key>iTunesStoreID</key>
                        <integer>464656389</integer>
                        <key>ManagementFlags</key>
                        <integer>4</integer>
                   </dict>
         </dict>
    </plist>

这个问题花了我一周的时间,直到我不小心弄明白了。

于 2012-09-19T06:46:32.120 回答
1

我遇到了同样的问题,但刚刚找到了解决方案,这是问题所在,当我查看手册页时,我看到 CFNumber 被映射到,或者,一旦将其更改得太真实,它就像一个魅力 https://developer.apple.com/library /mac/#documentation/Darwin/Reference/ManPages/man5/plist.5.html

于 2012-09-19T22:33:01.863 回答
0

要安装企业 IPA,您可以使用以下 XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST      1.0//EN""http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>CommandUUID</key>
        <string>4424F929-BDD2-4D44-B518-393C0DABD56A</string>
        <key>Command</key>
            <dict>
              <key>RequestType</key>
              <string>InstallApplication</string>
              <key>ManifestURL</key>
              <string>https://company.com/manifest.plist</string>
              <key>ManagementFlags</key>
              <integer>4</integer>
             </dict>
     </dict>
</plist>

下面是一个示例清单文件:

 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"  "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
 <plist version="1.0">
 <dict>
     <key>items</key>
     <array>
     <dict>
        <key>assets</key>
        <array>
            <dict>
                <key>kind</key>
                <string>software-package</string>
                <key>url</key>
                <string>https://companyName/filename.ipa</string>
            </dict>
        </array>
        <key>metadata</key>
        <dict>
            <key>bundle-identifier</key>
            <string>com.company.appname</string>
            <key>bundle-version</key>
            <string>3</string>
            <key>kind</key>
            <string>software</string>
            <key>title</key>
            <string>appname</string>
        </dict>
      </dict>
   </array>
 </dict>
 </plist>
于 2016-06-23T14:23:07.037 回答