Ad Hoc无法下载

时间:2015-02-19 05:52:30

标签: ios plist ipa adhoc ad-hoc-distribution

我想通过Ad Hoc分发我的iOS应用程序。由于当前版本的XCode不会创建.plist文件,所以我从StackOverflow中获取了一个并将其填充为打击文件。

<?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>items</key>
        <array>
                <dict>
                        <key>assets</key>
                        <array>
                                <dict>
                                        <key>kind</key>
                                        <string>software-package</string>
                                        <key>url</key>
                                        <string>http://hungry.portfolio1000.com/HungryHandongi.ipa</string>
                                </dict>
                        </array>
                        <key>metadata</key>
                            <dict>
                                <key>bundle-identifier</key>
                                <string>com.Akadev.HungryHandongi</string>
                                <key>bundle-version</key>
                                <string>1.06</string>
                                <key>kind</key>
                                <string>software</string>
                                <key>title</key>
                                <string>배고픈 한동이</string>
                        </dict>
                </dict>
        </array>
</dict>
</plist>

.plist文件的网址是:https://dl.dropboxusercontent.com/s/tulw9h412me6ayh/HungryHandongi.plist?dl=0

现在我想让人们通过网址http://hungry.portfolio1000.com/hungryhandongi.html下载应用,其编码如下:

                                       

    </head>
    <body>
        <ul>
            <li><a href="itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/tulw9h412me6ayh/HungryHandongi.plist?dl=0">Download</a></li>
        </ul>
    </body> 
</html>

当我使用Safari打开网址并点击“下载”链接时,没有任何反应。我想知道我做错了什么。

谢谢。

1 个答案:

答案 0 :(得分:1)

我认为你在iOS 8中遇到了这个问题。

是的,对于通过空中分发,您需要手动创建plist文件。你必须改变你的标识符,如

com.Akadev.HungryHandongi com.Akadev.HungryHandongi.iOS8fix

请检查下面的plist,它会帮助你

<?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>items</key>
    <array>
        <dict>
            <key>assets</key>
            <array>
                <dict>
                    <key>kind</key>
                    <string>software-package</string>
                    <key>url</key>
                     <string>http://www.path.com/build/iphone/some/2015/022015/name/appname.ipa</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>full-size-image</string>
                    <key>needs-shine</key>
                    <true/>
                    <key>url</key>
                     <string>http://www.name.com/build/iphone/EnterpriseTB/2015/022015/some/iTunesArtwork.png</string>
                </dict>
                <dict>
                    <key>kind</key>
                    <string>display-image</string>
                    <key>needs-shine</key>
                    <true/>
                    <key>url</key>
                     <string>http://www.some.com/build/iphone/some/2015/022015/some/Icon.png</string>
                </dict>
            </array>
            <key>metadata</key>
            <dict>
                <key>bundle-identifier</key>
                <string>mobi.somecmp.appname.ios8fix</string>
                <key>bundle-version</key>
                <string>1.0</string>
                <key>kind</key>
                <string>software</string>
                <key>title</key>
                <string>appname 2015</string>
            </dict>
        </dict>
    </array>
</dict>
</plist>

注意:对于ADHoc,应将设备ID添加到您的配置文件中。