ios 程序发布成ipa 文件 通过 web 下载和安装。install App via OTA
2014-04-01 20:41
751 查看
转自:
/article/8004899.html
iOS 7.1正式版发布了,之前使用itms-services://URL方式在线安装ipa文件的方法却失效了,点击的时候报错为:“无法安装应用程序,因xxx.com的证书无效”(错误界面见下图),这应该怎么解决呢?
其实iOS 7.1修改了manifest.plist文件的访问协议,之前可以通过http协议访问,在iOS 7.1之后必须使用https协议方式访问。
比如之前的链接代码为:
itms-services://?action=download-manifest&url=http://example.com/manifest.plist
在iOS 7.1之后,就需要修改为:
itms-services://?action=download-manifest&url=https://example.com/manifest.plist
需要一个SSL证书才能够实现在线安装ipa文件的功能。
具体的方法 可以 参照 /article/1607005.html
下面是把app放到web site,让其他人通过Over the Air (OTA)下载安装的步骤。
前提: 能安装app的device需要被包含在你的provisioning profile里
ref link: https://help.apple.com/iosdeployment-apps/?lang=en-us#app43ad871e
Step 1 在你的project里,选择"iOS Device" in the active scheme (如果选择的是iPad simulator or iPhone simulator,那么menu "Product > Archive"是灰化的)
Step 2 select menu "Product > Archive"来为你的project创建一个archive (it is recommended that build your project again before this action)
Step 3 这时应该会自动弹出organizer window (之后你可以通过menu "Window > Organizer"来打开它),并显示你刚创建的archive item in the archive list。Highlight the archive item, and then click "Distribute..." button
Step 4 select option "Save for enterprise or Ad-Hoc deployment", click "Next"
Step 5 set "Code Signing Identity" as default value, my default value is "Tomson Xu" (这应该是你在apple developer site创建的certificate name), click "Next"
Step 6 设置"Save as"为你的project name,设置存放生成文件的位置"Where",勾上"Save for Enterprise Distribution"。
Step 7 设置"Application URL"为即将生成的ipa将放到web site里的URL(e.g.http://xxx.xxx.xxx.xxx/CityUCAP.ipa),设置"Title"为任意text(注意它并不是安装后的app
display name), click "Save" button. 这时它将创建一个ipa file和一个与ipa file同名的plist file (假设为 CityUCAP.ipa and CityUCAP.plist)
Step 8 把step 7生成的ipa and plist file复制到你的web site里 (注意:其url要和step 7设置的”Application URL“一样),然后创建一个html file as follow.
[html] view
plaincopy
<a href="itms-services://?action=download-manifest&url=http://xxx.xxx.xxx.xxx/ CityUCAP.plist">Install App</a>
Step 9 你需要添加2个MIME类型到你的web server,否则安装过程中就有可能出错。下面以IIS为例添加MIME
type
1. 打开IIS Manager,左边panel选定root node,然后在右边的panel double click "MIME Types"
2. right click 任意位置, select "Add...",分别添加下列2个MIME Type
File name extension: .ipa
MIME Type: application/octet-stream
File name extension: .plist
MIME Type: text/xml
3. restart your web server
Step 10. 在你的iPhone web browser里访问Step 8创建的html file,然后click link to install app!
/article/8004899.html
iOS 7.1正式版发布了,之前使用itms-services://URL方式在线安装ipa文件的方法却失效了,点击的时候报错为:“无法安装应用程序,因xxx.com的证书无效”(错误界面见下图),这应该怎么解决呢?
其实iOS 7.1修改了manifest.plist文件的访问协议,之前可以通过http协议访问,在iOS 7.1之后必须使用https协议方式访问。
比如之前的链接代码为:
itms-services://?action=download-manifest&url=http://example.com/manifest.plist
在iOS 7.1之后,就需要修改为:
itms-services://?action=download-manifest&url=https://example.com/manifest.plist
需要一个SSL证书才能够实现在线安装ipa文件的功能。
具体的方法 可以 参照 /article/1607005.html
下面是把app放到web site,让其他人通过Over the Air (OTA)下载安装的步骤。
前提: 能安装app的device需要被包含在你的provisioning profile里
ref link: https://help.apple.com/iosdeployment-apps/?lang=en-us#app43ad871e
Step 1 在你的project里,选择"iOS Device" in the active scheme (如果选择的是iPad simulator or iPhone simulator,那么menu "Product > Archive"是灰化的)
Step 2 select menu "Product > Archive"来为你的project创建一个archive (it is recommended that build your project again before this action)
Step 3 这时应该会自动弹出organizer window (之后你可以通过menu "Window > Organizer"来打开它),并显示你刚创建的archive item in the archive list。Highlight the archive item, and then click "Distribute..." button
Step 4 select option "Save for enterprise or Ad-Hoc deployment", click "Next"
Step 5 set "Code Signing Identity" as default value, my default value is "Tomson Xu" (这应该是你在apple developer site创建的certificate name), click "Next"
Step 6 设置"Save as"为你的project name,设置存放生成文件的位置"Where",勾上"Save for Enterprise Distribution"。
Step 7 设置"Application URL"为即将生成的ipa将放到web site里的URL(e.g.http://xxx.xxx.xxx.xxx/CityUCAP.ipa),设置"Title"为任意text(注意它并不是安装后的app
display name), click "Save" button. 这时它将创建一个ipa file和一个与ipa file同名的plist file (假设为 CityUCAP.ipa and CityUCAP.plist)
Step 8 把step 7生成的ipa and plist file复制到你的web site里 (注意:其url要和step 7设置的”Application URL“一样),然后创建一个html file as follow.
[html] view
plaincopy
<a href="itms-services://?action=download-manifest&url=http://xxx.xxx.xxx.xxx/ CityUCAP.plist">Install App</a>
Step 9 你需要添加2个MIME类型到你的web server,否则安装过程中就有可能出错。下面以IIS为例添加MIME
type
1. 打开IIS Manager,左边panel选定root node,然后在右边的panel double click "MIME Types"
2. right click 任意位置, select "Add...",分别添加下列2个MIME Type
File name extension: .ipa
MIME Type: application/octet-stream
File name extension: .plist
MIME Type: text/xml
3. restart your web server
Step 10. 在你的iPhone web browser里访问Step 8创建的html file,然后click link to install app!
相关文章推荐
- iOS: install App via OTA(通过网页安装ipa)
- iOS 5设备不能通过plist配置文件安装ipa程序
- iOS不用上架就能下载安装ipa应用内测:使用FIR.im发布自己的移动端APP
- iOS8 web下载ipa install App via OTA
- iOS不用上架就能下载安装ipa应用内测:使用FIR.im发布自己的移动端APP
- 已经越狱的 iPhone、iPad 设备,当通过其自带的 safari 浏览器访问 ipa 应用下载网站时,利用 itms-services 协议,可以一键安装 ipa 文件的 iOS 应用
- iOS苹果企业证书通过网页安装app的plist文件结构分析
- iOS:苹果企业证书通过网页分发下载安装app
- iOS中未越狱的iPhone、iPad通过网址实现一键安装ipa格式的APP应用
- ios生成自签名证书,实现web下载安装app
- ios安装文件ipa下载及bundle-identifier获取
- 使用无线方式发布ipa (即用户可以通过点击网页链接或扫瞄二维码来自动安装app)
- 通过改变计算机策略来解决“只能通过Chrome网上应用商店安装该程序”的方法及模版文件下载
- 未发布的IOS应用App生成ipa进行内部下载测试(Testflight、fir.im)
- 请教一下,我开发的ios app发布到appstore之后,在ios 8.0.2 iphone6 plus上下载总提示安装失败,又要重新安装
- iOS:苹果企业证书通过网页分发下载安装app
- Application Loader下载安装和上传IOS app程序
- 发布程序 通过safari直接下载手机安装
- 文件下载以及安装(installApp以及download)
- iOS: install App via OTA