发布ios应用程序

详见文档 AppDistributionGuide

  • Submit and Release Your App

首先,需要登入itunes connect并且输入必要的信息更改app状态为 waiting for upload

然后,创建一个archive并且在xcode中使用distribution certificate文件来签名

最后,使用xcode或者application loader来提交app

当app通过审核后,需要使用itunes connect来发布并且设置用户可以使用该app的具体日期

  • 在xcode中添加apple ID 开发者账号

这个可以添加到xcode中并且查看当前的账号。为了添加一个apple id账号

1,选择xcode->preferences

2,选择Accounts选项卡

3,点击左下角的+加号

4,选择add apple id

5,如果已经注册了开发者账号就直接输入账号和密码

6,如果没有的话就选择join a program 会直接进入到注册开发者账号的网页

  • remove一个apple id账户

1,选择xcode->preferences

2,  点击Accounts选项卡

3,选择想要删除的apple id account

4,选择左下方的delete按钮

  • 使用xcode创建应用程序过程

其中的product name是app的名称,会展示给用户看。而且应当和之后再itunes connect中输入的app name要类似

其中的orgnization name是xcode项目的一个属性,这个可以出现在头文件和源文件的copyright的相关描述文字中

其中的company identifier是唯一的一个字串即设置为bundle id

其中的bundle identifer就是company identifier和product name结合起来的字符串

  • bundle ID的使用:

1,在xcode工程中,bundle id保存再info.plist文件中,当编译项目时,这个文件稍后会被拷贝进入app bundle

2,在member center中,你创建一个app id来匹配app bundle id。如果app id是一个明确的app id那么他会完全匹配bundle id。尽管如此但是和域名不同,bundle ids是区分大小写的。如果app id是小写的,那么bundle id就也需要小写

3,在icloud中,container ids基于bundle ids

4,在itunes connect中,输入的bundle id来唯一标示app。当第一个版本成功发布到app store上后就不能再修改bundle id了

  • 需要时候工程中有两处修改bundle id

1,选择project再general选项卡下面的identity中修改

2,在info文件中修改bundle identifier

  • 设置version number和build string

1,选择project再general选项卡下面的version 和build中修改

 

 

  • 设置部署目标deployment target

这个选项指定了该项目支持的最低版本。比如7.0 其中的status bar style可以选择该工程中status bar的背景颜色

  • 设置部署目标设备target ios device

这个device选项指定的是当前app可以在何种设备上运行,如果只是支持iphone的请务必选择iphone,如果选择universal的话但是本身又没有做ipad的兼容那么当程序在ipad设备运行时候会乱。如果选择iphone的话即便在ipad上只会尺寸有边框不会影响其他

  • 需要添加所需尺寸的app icons和launch images
  • push notification设置和支持

只有创建了SSL certificate以后才可以开启这个功能

如果支持的话会是显示enable,否则就是不支持。如果是黄颜色的圆点并且显示Configurable就说明缺少对应的ssl证书文件。You can enable the push notifications in the future release and it's better after you enable the push notifications recreate a new provision profile which contain the updated apple ID

1,使用开发者账号登陆developer网站并选择Certificates, Identifiers & Profiles,选择Identifiers

2,  在Identifiers下选择App IDs

3,  选择app id并点击edit

4,选择Push Notifications选项

5,选择ssl类型的证书分为开发和产品两种

6,创建相应证书

7,选择文件

8, 选择证书需要文件(后缀为a.certSigningRequest扩展)并选择

9,选择生成

10, 下载

11, 完成

  • 检查是否已经开启了push notifications功能

1,使用开发者账号登陆developer网站并选择Certificates, Identifiers & Profiles,选择Identifiers

2,  在Identifiers下选择App IDs

  • 更新证书

当证书有变动时,比如刚刚配置了push notifications那么需要首先在xcode中更新此最新的证书否则不会自动检测并更新改动

1,选择xcode中的preferences,选择 Accounts

2,  选择team,点击view details

3,点击左下方的更新按钮

4,如果让你船舰distribution 证书,选择not now或者request

5,点击完成

  • 在设备上安装app

1,连接测试设备

2,双击生成的ipa文件

3,会自动弹出itunes,然后选择右上角的device按钮

4,选择apps 按钮

app会出现在itunes app list中

5,选择sort by name或者 sort by kind 所有的app会显示出来

6, 如果出现install按钮,点击,按钮会变为 will install

7, 选择apply 按钮或者左下方的同步按钮来同步设备

      app就会被上传到设备中用户就可以测试了

  • 从测试者搜集crash报告

当app crash时,ios会创建record。下次测试用户连接ios 设备到itunes,itunes会下载这些报告到测试者的mac下。即便是发布后,仍然可以通过itunes connect来重新获取这些crash报告

下面就是讲述如何让测试人员获取crash报告并且发送报告mac下

1,连接设备到itunes,itunes会下载crash报告到mac下

2,在finder中,选择go->go to folder

3,  输入~/Library/Logs/CrashReporter/MobileDevice

4,打开对应设备名称的报告

5,选择crash logs

6,选择finder-》services-》mail-》send file

7, 输入开发者的地址和有效的信息

8,选择message-》send

9,为了避免重复发送,需要将发送过的报告删除

下面就是讲述如何让测试人员获取crash报告并且发送报告windows下

1. Enter the crash log directory for your operating system in the Windows search field, replacing
<user_name> with your Windows user name.
● For crash log storage on Windows, type:
C:\Users\<user_name>\AppData\Roaming\Apple
computer\Logs\CrashReporter/MobileDevice
● For crash log storage on Windows XP, type:
C:\Documents and Settings\<user_name>\Application Data\Apple
computer\Logs\CrashReporter
2. Open the folder named after your device’s name and send the crash logs for the app you’re testing in
an email message using the subject-text format <app_name> crash logs from <your_name>
(for example, MyTestApp crash logs from Anna Haro) to the app’s developer.

  • 提交app

1,创建发布类型证书

2,创建store发布类型证书

3,archive并且validate你的app

4,对于mac apps 测试mac 安装包

5,通过xcode或者application loader提交app

创建store provisioning profiles

1. In Certificates, Identifiers & Profiles, select Provisioning Profiles.

选择provisioning profiels
2. Click the Add button (+) in the upper-right corner.

选择加号
3. Select App Store for iOS apps or Mac App Store for Mac apps as the distribution method, and click
Continue.

选择distribution下的app store选项

4. Choose the App ID you used for development (the app ID that matches your bundle ID) from the App
ID pop-up menu, and click Continue.

选择匹配你bundle id的app id点击continue

5. Select your distribution certificate, and click Continue.
A store provisioning profile contains a single distribution certificate.

选择distribution certificate并且选择continue
6. Enter a profile name, and click Generate.
Wait while Member Center generates the provisioning profile.

输入证书名字选择生成
7. Click Done.

点击完成

8,选择更新证书

store类型证书将会出现再accounts preferences下的证书列表中可以查看到

Archiving和Validating app

Follow these steps to archive and validate your app:
1. Review the Archive scheme settings.

预览archive scheme设置
2. Create an archive of your app.

为app创建archive
3. Validate the archive.

validate 这个archive
4. If necessary, test your archive before submitting it.

reviewing the archive scheme settings

If necessary, review the Archive scheme settings to ensure that you don’t archive a debug version of your app.

review archive确保没有archive一个debug版本
To review the Archive scheme
1. In the Xcode project editor, choose Product > Scheme > Edit Scheme to open the scheme editor.

选择product-》scheme-》edit scheme来打开scheme editor

2. Click Archive in the column on the left.

选择左侧的archive


3. Choose Release from the Build Configuration pop-up menu, and click OK.

Creating an Archive

No matter what method you choose to distribute your app, create an archive first. Before creating the archive,
build and run your app one more time to ensure that it’s the version you want to distribute. Immediately after
creating the archive, validate it and fix any validation errors before continuing.

不论使用什么方法发布app,需要首先创建一个archive。在创建archive前,编译并且多次运行app确保就是发布的版本。然后validate这个archive并且解决过程中遇到的任何问题


To create an archive
1. In the Xcode project editor, select the project.
2. From the Scheme toolbar menu, choose a scheme.
iOS Note: Choose iOS Device or the device name from the Scheme toolbar menu. You can’t
create an archive of a simulator build. If an iOS device is connected to your Mac, the device
name appears in the Scheme toolbar menu. When you disconnect the iOS device, the menu
item changes to iOS Device.
3. Choose Product > Archive.

运行itunes connect validation tests

To validate an archive
1. In the Archives organizer, select the archive.

选择archive
2. Click the Validate button.

选择validate按钮
3. For Mac apps, select Mac App Store as the validation method and click Next.
4. Enter your iTunes Connect credentials, and click Next.

输入itunes connect的账号和密码
If a dialog appears stating that no application record can be found, create an app record in iTunes
Connect before continuing.http://www.cnblogs.com/lisa090818/admin/EditPosts.aspx?opt=

如果提示没有应用程序记录那么就需要首先在itunes connect中创建一个app record
5. Choose the store provisioning profile or, for some Mac apps, the distribution certificate you created in
a previous step from the Provisioning Profile pop-up menu, and click Validate.

iTunes Connect runs validation tests.

6. Review validation issues found, if any, and click Finish.

 

 

  • 提交ios app

步骤:

1. In the Archives organizer, select the archive.

选择archive
2. Click the Distribute button.
点击distirbute按钮
3. Select “Submit to the iOS App Store,” and click Next.

选择submit to the ios app store并且选择next

4. Enter your iTunes Connect credentials, and click Next.

填写如itunes connect的账号和密码
5. Choose the store provisioning profile you created in a previous step from the Provisioning Profile
pop-up menu, and click Submit.

  • 发布和更新你的app

 Check the status of your app. Use iTunes Connect to check the status of your app after you submit your app
and are waiting for approval, as described in “Viewing the Status of Your App” (page 129).


Enter sales and marketing information. Use iTunes Connect to prepare your app for purchase on the store,
as described in iTunes Connect Developer Guide .
Release your app. Use iTunes Connect to set the availability date, as described in “Changing the Availability
Date of Your App” (page 131).
View customer reviews. Customer ratings and reviews on the store can have a big effect on the success of
your app; if users run into problems, correct the bug and submit a new version of the app through the approval
process. To view customer reviews, read “Viewing Customer Reviews” (page 133).
View crash reports. Use iTunes Connect to download crash reports submitted to Apple by users. Crash reports
represent significant problems that users find in the app. To access and analyze these crash reports, read
“Viewing Crash Reports” (page 133) and “Analyzing Crash Reports” (page 106).

To view crash reports
1. Sign in to iTunes Connect.
2. On the iTunes Connect homepage, click Manage Your Apps.
3. Locate the app you want to edit, and click the large icon or app name.
4. Click View Details for the version of your app.
5. Click Crash Reports in the upper-right corner.

6. Click Refresh Now to retrieve any new available crash reports.
7. Select the crash report you want to view, and save the crash report you want to retain.


Update your app. You follow the same distribution process to submit updates to your app. In iTunes Connect,
you use the same app record but create a new version of your app. To update your app, read “Creating New
Versions of Your App” (page 134).

 按照之前同样的步骤来更新应用程序。在itunes connect中使用同样的app 记录但是需要创建新的app version。详情见itunes connect的开发文档中的Editing and Updating App Information

 To create new versions of your app, read “Editing and Updating App Information” in iTunes Connect Developer
Guide .

  •  在itunes connect中管理你的app

 iTunes Connect users with admin and technical roles perform a number of tasks, explained in this chapter, in
support of the development team and related to submitting your app to the store:
1. Add iTunes Connect users to give other team members access to iTunes Connect.
2. Create your app record so you can configure key technologies and services, and submit your app.
3. View the status of your app when you’re ready to submit it or waiting for approval.
4. Change the availability date of an app to release it.
5. View crash reports and customer reviews after your app is available.
6. Create a new version of your app.
For complete documentation on using iTunes Connect, refer to iTunes Connect Developer Guide .

浏览用户情况

To view customer reviews
1. Sign in to iTunes Connect.
2. On the iTunes Connect homepage, click Manage Your Apps.
3. Locate the app you want to edit, and click the large icon or app name.
4. Click View Details for the version of your app.
5. Select Customer Reviews under Links.
If this link isn’t displayed, customer reviews aren’t available for this version of your app.

  • 关于签名证书和identities

浏览签名和证书

To view account details
1. Choose Xcode > Preferences.
2. Click Accounts at the top of the window.

3. Select the team you want to view, and click View Details.

In the dialog that appears, view your signing identities and provisioning profiles.

 4. Click Done to close the dialog.

 

 

 

证书过期

If a provisioning profile expires, the provisioning profile’s status displays Expired in Member Center. You renew
an expired provisioning profile by editing and re-generating it, as described in “Editing Provisioning Profiles
in Member Center” (page 200). You don’t need to make any changes to the provisioning profile. Just scroll to
the bottom of the “Edit iOS Provisioning Profile” or “Edit Mac Provisioning Profile” page and click Generate.

如果证书过期,通过editing 和 re-generating来renew一个。不需要对证书有任何的改动。只需要选择edite然后选择generate就可以了。

If the expired provisioning profile is installed on your device, remove it, as described in “Removing Provisioning
Profiles from Devices” (page 203). If the provisioning profile is an ad hoc provisioning profile, then re-sign and
distribute your app using the regenerated provisioning profile, as described in “Beta Testing Your iOS App” (page
90).

如果过期证书在设备中,那么可以通过orgnizater来删除

 

posted @ 2014-02-10 17:23  如来藏  阅读(1413)  评论(0编辑  收藏  举报