【发布时间】:2011-08-12 11:38:29
【问题描述】:
我正在尝试编写类似于 http://whatismyudid.com/ 的函数,该函数在获得批准后将返回用户 UDID 并将其存储到数据库中以供该用户将来参考。
我已经编写了一个 .mobileconfig xml 文档,它可以在配置文件安装程序中很好地打开,但是当我告诉它安装配置文件时,它会以 [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>
通过移动 safari 导航到 http://apps.mortlabs.com/device/enroll.php 来初始化配置文件
【问题讨论】:
标签: ios configuration utility udid