2013-09-23 75 views
1

我想安裝一個mobileconfig文件,只是阻止主頁按鈕,但我有一個錯誤:「無效的配置文件」。我在iOS 7 這裏是根據官方documentation我的XML mobileconfig:iOS手機配置無效

<?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>PayloadContent</key> 
    <array> 
     <dict> 
      <key>PayloadUUID</key> 
      <string>37BB1711-F1A3-48C3-BCB1-19B6A85394EA</string> 
      <key>PayloadType</key> 
      <string>com.apple.app.lock</string> 
      <key>App</key> 
      <dict> 
       <key>Identifier</key> 
       <string>com.pete.lockhomebutton</string> 
      </dict> 
     </dict> 
    </array> 
    <key>PayloadDescription</key> 
    <string>Disables Home Button</string> 
    <key>PayloadDisplayName</key> 
    <string>Home Button Lock</string> 
    <key>PayloadIdentifier</key> 
    <string>com.pete.lockhomebutton</string> 
    <key>PayloadOrganization</key> 
    <string>Pete</string> 
    <key>PayloadType</key> 
    <string>Configuration</string> 
    <key>PayloadUUID</key> 
    <string>C66415E9-74FE-489A-896C-8AF0F0FE5E9A</string> 
    <key>PayloadVersion</key> 
    <integer>1</integer> 
</dict> 
</plist> 

我找不到我的錯誤。

+0

你得到的錯誤究竟是什麼?請發佈完整的錯誤。 「無效配置文件」對我說,您沒有使用不在此處的正確配置文件。只需一點查詢「主頁按鈕鎖定」您的應用程序是否鎖定設備上的主頁按鈕?如果是這樣,你確實意識到這將永遠不會進入應用商店。您不允許混淆home鍵。 – Popeye

回答

0

應用軟件包標識符: <key>Identifier</key> <string>com.pete.lockhomebutton</string>

淨荷標識符: <key>PayloadIdentifier</key> <string>com.pete.lockhomebutton</string>

這兩種不能是相同的。

應用程序包標識符,這是要被鎖定的應用程序的標識符。

只有當應用程序已安裝在設備上時,才能完成應用程序鎖定。

+0

「我相信這個應用程序應該已經安裝在應用程序中。」什麼?這沒有意義。 – Popeye

+0

有一個錯字,請檢查更新後的答案。 – user3052590

+0

我懷疑這個,所以我沒有倒下,因爲它只需要一個快速更正:-) – Popeye