当我尝试使用问题中提到的.mobileconfig文件远程安装应用程序到iPhone时 stack overflow answer
它返回错误“无效的配置文件”。 我使用的代码是
<?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>
还请告诉我什么 是用于的字符串标记。我是MDM的新手。
答案 0 :(得分:0)
在您的个人资料中,"-//Apple//DTD PLIST 1.0//EN"
,"http://www.apple.com/DTDs/PropertyList-1.0.dtd"
<?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">
<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>
它会起作用。
用于字符串标记的是什么?
<string> UTF-8 encoded string <real>, <integer> Decimal string <true/> or <false/> No data (tag only) <date> ISO 8601 formatted string <data> Base64 encoded data <array> Can contain any number of child elements An empty array may be represented as <array/> <dict> Alternating <key> tags and plist element tags
如果要在PList中使用UTF8编码的字符串,将使用字符串标记。