ios程序上传app store过程总结

1 申请开发者帐号

 

2 申请APP ID

https://developer.apple.com/ios/manage/bundles/index.action

 

Description:San Zhang

Bundle Identifier (App ID Suffix): cn.a.appname

 

3 申请CSR

钥匙串访问-证书助理-从证书颁发机构求证书

填写注册开发账户时的邮箱和用户名,将CSR文件存储到磁盘。

 

4 申请发布证书

iOS provisioning portal-certificates-distribution-导入CSR文件-download-打开-在钥匙串访问中显示

 

5 申请distribution provisioning

 

iOS provisioning portal-provisioning-distribution-add new-submit-download-打开-自动关联

 

6 itunes connect中新增app,填写相关信息。

 

7 代码中新增Entitlements.plist文件

内容为:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>application-identifier</key>

<string>Z3VJF32UKJ.cn.a.appname</string>

<key>get-task-allow</key>

<false/>

</dict>

</plist>

8 修改resource下的plist文件

Bundle identifier:cn.a.appname

9 配置xcode

项目-get info-configurations中新增distribution配置项。

Build选项-configuration选择为distribution-修改codesigning identify和any iphone os device为distribution证书。Targeted device family为iphone。

 

Target中-get info-做同上设置

10 clean,build and archive。

注意:文件目录层次不要太深。文件名长度进行控制。

11 打开xcode-organizer-archived applications-选择编译程序,validate-submit

 

 

 

 

 

posted @ 2012-06-01 13:48  因是因非  阅读(4109)  评论(1编辑  收藏  举报