相关疑难解决方法(0)

从.mobileconfig获取设备UDID

我正在尝试编写类似于http://whatismyudid.com/的函数,然后批准,将返回用户UDID并将其存储到数据库以供将来与该用户一起参考.

我已经编写了一个在Profile Installer中打开的.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>
Run Code Online (Sandbox Code Playgroud)

通过移动safari 导航到http://apps.mortlabs.com/device/enroll.php来初始化配置文件

configuration utility udid ios

21
推荐指数
2
解决办法
2万
查看次数

标签 统计

configuration ×1

ios ×1

udid ×1

utility ×1