把ipa包上传到AppStore
转自:http://doc.appcan.cn/dev_iosdom.html
概述
由于苹果的机制,在非越狱机器上安装应用必须通过官方的Appstore,开发者开发好应用后上传Appstore,也需要通过审核等环节。AppCan作为一个跨主流平台的一个开发平台,也对ipa包上传Appstore作了支持。本文从三个流程来介绍如何实现AppCan在线编译出ipa包,以及上传到苹果Appstore。
一、证书的导出
1.1、前期工作
首先你需要有一个苹果的开发者帐号,一个mac系统。如果没有帐号可以在打开http://developer.apple.com/申请加入苹果的开发者计划。支付99美元每年,怎么申请网上有详细的介绍,在此不多做介绍。如果你已经有了一个IDP,打开http://developer.apple.com/并登录到苹果MemberCenter,见下图


1.2、申请appid
在下图的左边选择 App IDs,我们先创建一个AppId,对于要发布到Appstore上的程序,都有一个唯一的AppId,下面会列出你当前所有的AppId

第一个Description,用来描述你的appid,这个随便填,没有什么限制;
第二项Bundle Identifier (App ID Suffix),这是你appid的后缀,这个需要仔细,因为这个内容和你的程序直接相关,后面很多地方要用到,最好是 com.yourcompany.yourappname的格式,当然没有公司名的个人开发者,第二项可以用你自己的英文名字或者拼音,如下图
appcan.cn在线ipa包编译时需要填写的iapp IDs就是你再此输入的第二项内容


1.3、申请发布证书
1.3.1、先创建一个证书请求文件
这儿需要一个mac系统。以下内容以雪豹系统为例,其他版本差别不是很大。首先打开应用程序-实用工具-钥匙串访问(KEY CHAIN),在证书助理中,选择"从证书颁发机构求证书",如下图



1.3.2、安装WWDR证书
继续登录到你的MEMBER CENTER,选择左边的certificates项,可以看到它右边有四个选项,我们选择Distribution,点击下面的click here to download now.
1.3.3、请求一个发布证书
OK,现在来请求一个真正的发布证书,还是在这个页面,点击request certificate


1.3.4、安装和导出
点击"download"下载你生成的证书,下载完成后双击安装,如果有如下提示,选择login,OK




appcan.cn在线ipa包编译时需要上传的distribution.p12就是你导出的发布证书;certificate password就是导出证书时填写的密码。
1.4、生成provisioning文件
在下图左边选择provisioning选项,同样的右边的子项中选择distribution,来生成一个发布的准备文件
Profile name,这个随便填,下面的App ID,选择我们开始的时候创建的appid,这个必须一致。确认后提交。

appcan.cn在线ipa包编译时需要上传的distribution.mobileprovision就是你生成的文件

二、Appcan.cn在线ipa包编译
根据流程一制作的证书及p12文件,开发者就能够对应于进行混编,从而生成出可上传Appstore的ipa包,其流程如下:
AppCan在线的打包方式(非IDE打包方式),用户生成应用时需要选择生成ios平台,勾选后弹出下图窗口,
需要填写上传Apple开发者在Apple获得的发布应用相关资质信息(详情请参考证书的导出),并却确认提交。务必填写正确否则会打包失败的。
上传相关资质信息后,【注意】提交打出的文件包是用来上传到苹果Appstore 用的 不能直接安装到手机测试
Q:打包成功后我如何上传到Appstore
A:下载.ipa文件到本地,更改文件后缀.ipa为.zip。(上传请参看ipa包提交苹果Appstore)
Q:打包完成后我如何安装到越狱手机上测试?
A:1、下载.ipa文件到本地,更改文件后缀.ipa为.zip并解压缩文件包,
2、新建Payload文件夹,
3、把解压缩.zip包里面的文件夹拷到Payload文件夹里
4、压缩Payload文件夹为.zip文件包,改.zip后缀为.ipa
5、安装到手机
跳过后打出的安装包可以直接安装到越狱手机
AppCan在线的打包方式(非IDE打包方式),用户生成应用时需要选择生成ios平台,勾选后弹出下图窗口,


Q:打包成功后我如何上传到Appstore
A:下载.ipa文件到本地,更改文件后缀.ipa为.zip。(上传请参看ipa包提交苹果Appstore)
Q:打包完成后我如何安装到越狱手机上测试?
A:1、下载.ipa文件到本地,更改文件后缀.ipa为.zip并解压缩文件包,
2、新建Payload文件夹,
3、把解压缩.zip包里面的文件夹拷到Payload文件夹里
4、压缩Payload文件夹为.zip文件包,改.zip后缀为.ipa
5、安装到手机

三、Ipa包提交苹果Appstore
通过AppCan在线与开发者证书混编后,生成的ipa包(后缀.ipa改为.zip)即可上传至苹果Appstore,以下是操作流程
打开https://itunesconnect.apple.com/(membercenter中也可以找到)选择"Manage Your Applications"
点击
填写下面的表格。
默认语言,
appname,
SKU Number,这是自己程序的标识,点击后面的"?"有说明
Bundle id:这个可以选择,必须和你申请证书时候的appid保持一致。否则会上传失败。
填完后,点击"Continue"
这个页面设置程序的生效时间和价格,选择后,点击"Continue"
下图的页面需要填一些程序的信息,注意"Review Notes (optional)"这个选项是对苹果review程序的说明,如果你的程序需要登录才可以使用,要在这里提供用户名和密码,如果你的程序的一些特色很隐晦,可以在这里提供操作步骤,这是让apple的review人员看的东西,不会在appstore里面显示。
下图的页面是一些分级的说明,根据需要选择
下面是metadata,这个可能很重要,注意那个keywords,设置的越多你的程序被搜到的几率越大。Large app icon 这需要一张512x512的icon。screenshots是屏幕截图或者说明性的图片。
填完后done,这样就创建好了一个app,点击"view detail",然后选择
。这时发现你的app显示一个黄色的wait for upload,表示你可以上传你的二进制代码了.如下图
在mac下安装了该工具后,运行,如果是第一次,可能需要你用你自己的idp帐号登录(以后会保存在钥匙串中),登录后会自动检查你有没有等待上传状态的app,选择你创建好的app,如下图
点击"Next"按钮
点击"choose"按钮,选择你从Appcan在线编译出来的ipa包,修改.ipa后缀为.zip,请不要打开修改包里面的内容(包括添加和删除资源图片等文件),否则会上传失败。
点击"Send"按钮,等待上传,上传完成后,打开itunesconnect,这时候你的程序状态变为"upload received",程序进入苹果第一步审核。第一步审核几分钟到几小时。当通过第一步审核后,程序状态变为"wait for review",此时程序进入等待人工审核的状态,大概4天到2周的时间都是这个状态,直到排队轮到你的程序时,程序进入"in review"状态,如果你的程序没有内容上的问题,符合苹果的审核标准,那么审核成功,你程序的状态变为绿色的" Ready for Sale",如果审核失败,程序状态变为红色的" Rejected "
上传过程中每一步的失败苹果都会发邮件给你,或者你能在
看到详细的失败信息。
当你的程序变为"ready for sale"状态时候,你就可以在appstore里面找到它了。至此,上传结束。你就可以通过IOS设备在Appstore中找到你的应用了。
3.1、在itunes中创建程序
该部分内容继续以雪豹系统为例打开https://itunesconnect.apple.com/(membercenter中也可以找到)选择"Manage Your Applications"


填写下面的表格。
默认语言,
appname,
SKU Number,这是自己程序的标识,点击后面的"?"有说明
Bundle id:这个可以选择,必须和你申请证书时候的appid保持一致。否则会上传失败。

这个页面设置程序的生效时间和价格,选择后,点击"Continue"






3.2、上传程序
上传程序请在你的mac系统下找到application uploader工具,找不到的可以在下图这儿下载。Xcode4.x将该工具集成到了xcode里面。



上传过程中每一步的失败苹果都会发邮件给你,或者你能在

当你的程序变为"ready for sale"状态时候,你就可以在appstore里面找到它了。至此,上传结束。你就可以通过IOS设备在Appstore中找到你的应用了。
相关推荐
APCDE 2020-03-04
歆萌 2020-03-03
Deng0web 2018-07-02
hehehechen 2019-06-27
Android开发积累 2018-03-16
lihaoxiang 2014-08-25
Theqianduan 2012-09-26
redbricks 2012-08-07
TS0 2018-07-01
wuqihaoa 2014-03-12
freerocker 2013-04-07
crazyfire 2012-04-23
Pinapps 2017-12-05
BAT 批处理程序 2017-05-05
手机APP开发 2016-10-20