我想在自己的服务器上分发我的Beta Adhoc构建版本。苹果用于通过空中安装应用程序的逻辑中似乎有2个重要的URL。
第一个URL在HTML中:
<p><a href="itms-services://?action=download-manifest&url=http://www.example.com.cn/path/to/plist/theplist.plist">Adhoc Build</a></p>
第二个是在那个plist文件里面
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>http://www.example.com.cn/path/to/binary/app.ipa</string>
</dict>
这些URL可以是相对的吗?我希望相同的HTML和XML文件在我的开发机器(MAMP服务器)上能够正常工作,首先测试我是否可以下载二进制文件,然后将adhoc构建发布到我的Web服务器(NGINX)上供我的测试人员使用。目前,我只能使用绝对URL使其正常工作。
我的想法是这两个相对URL应该可以工作
<p><a href="itms-services://?action=download-manifest&url=/path/to/plist/theplist.plist">Adhoc Build</a></p>
和
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>/path/to/binary/app.ipa</string>
</dict>
当我使用那些相对URL时,当我点击后,设备会弹出一个窗口,上面写着“无法连接到(null)”。