0
我期待在应用程序更新中创建,目前我的应用程序在我的亚马逊是s3存储桶中为我的plist文件创建一个签名url,我还为我创建了一个签名url .ipa文件,并存储在我的plist文件已签署的网址,如可以在下面看到:正在下载从亚马逊Aws s3应用程序更新OTA iOS
URL呼叫在应用程序:
NSMutableString *downloadURL = [NSMutableString string] ;
[downloadURL appendString:@"itms-services://?action=download-manifest&url="];
[downloadURL appendString:plistURL];
NSString *ipaDownloadString = [NSString stringWithString:downloadURL];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:ipaDownloadString]];
其中ipaDownloadString是已签署的网址添加到项目的服务://?动作等。
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>https://bucket_name.s3-eu-west-1.amazonaws.com/ipa_name.ipa?AWSAccessKeyId=xxxxxxxxxxxxx&Expires=1435587320&Signature=xxxxxxxxxxxx</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>com.name.DropboxTest</string>
<key>bundle-version</key>
<string>1.1</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>Dropbox Test</string>
</dict>
</dict>
</array>
</dict></plist>
当您将它们插入浏览器时,这些网址正在工作,但是,应用程序不会像点击链接时那样下载应用程序。
我已经尝试过在plist中编码URL的url无济于事。 plist中有内容类型:text/plain的 的IPA具有内容类型|:应用程序/八位字节流
欢呼声, 本