您的位置:首页 > 移动开发

IOS开发~web在线安装App

2014-08-12 19:08 323 查看
经测试,在越狱设备上可以安装,如果设备不越狱也想安装,就要企业发布权限了,可惜我没有,所以不能测试了!

1、创建ipa及plist文件:
XCode菜单栏->Product->Archive->Distribute->Save for Enterprise or Ad-Hod Deploymemnt

点击Next
选择你的Code signing Identity,我选的是Team profile
点击Next
选择Save for Enterprise Distribution,并且填写信息



说明:Large Image URL 与 Small Image URL 对应你的App安装过程中的icon

点击保存后,会生成ipa文件和plist文件。
plist文件如下:



2、创建web下载页面

[html] view
plaincopy

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

</head>

<body>

<div align='center'>

<a href="itms-services://?action=download-manifest&url=http://yiwenxue.cn/game/game-demo.plist">在线安装</a>

<div>

</body>

</html>

3、部署与测试将项目ipa文件、plist文件、Large Image、Small Image、第(2)部创建的web页面部署到服务器目录中,IOS设备输入http://yiwenxue.cn/game,然后点击安装,安装URL根据你实际情况而定。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: