http://whatismyudid.com/に似た関数を作成しようとしています。この関数は、承認されると、ユーザーのUDIDを返し、そのユーザーが後で参照できるようにデータベースに保存します。
プロファイルインストーラーで正常に開く.mobileconfigxmlドキュメントを作成しましたが、プロファイルをインストールするように指示すると、[alert] Invalid Profile
アラート本文なしで応答します。説明もコードもヘルプもありません。
私はモバイル構成ゲームに慣れていないので、どんな助けでも私をワクワクさせます。
これが私の設定ファイルです:
<?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>
<dict>
<key>URL</key>
<string>http://apps.mortlabs.com/device/retrieve.php</string>
<key>DeviceAttributes</key>
<array>
<string>UDID</string>
<string>IMEI</string>
<string>ICCID</string>
<string>VERSION</string>
<string>PRODUCT</string>
</array>
</dict>
<key>PayloadOrganization</key>
<string>MortLabs.com</string>
<key>PayloadDisplayName</key>
<string>Profile Service</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadUUID</key>
<string>B958E359-34C2-42F4-BD0C-C985E6D5376B</string>
<key>PayloadIdentifier</key>
<string>com.mortlabs.profile-service</string>
<key>PayloadDescription</key>
<string>This temporary profile will be used to find and display your current device's UDID.</string>
<key>PayloadType</key>
<string>Profile Service</string>
</dict>
</plist>
プロファイルは、モバイルサファリでhttp://apps.mortlabs.com/device/enroll.phpに移動することで初期化されます