App Distribution Guide (二)

來源:互聯網
上載者:User

標籤:

Configuring Your Xcode Project for Distribution 

You can edit your project settings anytime, but some settings are necessary during development. Others are recommended when you distribute your app for beta testing and required when you submit your app to the App Store or Mac App Store.

你可以在任何時候編輯你的項目設定。但是有一些設定在開發階段就是需要的。

During development, your app must be provisioned and code signed to use certain app services and run on an iOS device (iPad, iPhone, or iPod touch). If you assign a bundle ID and team to your project, Xcode can create the necessary certificates, identifiers, and profiles for you in Member Center. You can enter this information now using the project editor or as needed when you add app services and launch your app.

在開發階段,你的app必須通過認證並且簽名才可以使用一些app 裝置並且在這些ios裝置上運行,例如(ipad,iphone,或者ipod touch)。如果你分配一個bundle id和team到你的工程中,xcode就可以為你在member center中建立必要的certificates,identifiers和profiles。

Before you distribute your app for testing or to the store, provide all the required information about your app. For example, set app icons to pass iTunes Connect validation tests.

Before you upload your app to the store, verify your build settings and set the copyright key for Mac apps. 

在上傳你的app到store前,驗證你的build設定並且為mac apps設定copyright。

Setting Properties When Creating Your Xcode Project 

For iOS apps, a dialog similar to this appears when you create an Xcode project from a template: 

The product name is the name of your app as it will appear to customers in the store and should be similar to the app name you enter later in iTunes Connect. Most importantly, a customer should instantly associate the app name and icon in the App Store with the product name and app icon that installs on their devices. The product name is also the name that will appear in Springboard when the app is installed. The product name can’t be longer than 255 bytes and can be no fewer than 2 characters. (Read Best Practices in iTunes Connect Developer Guide for guidelines on choosing an app name.)

product name即使你的app name。會出現在store中應當同之後你在itunes connect中輸入的app name類似。更重要的是,客戶應當立即將在app store中的app name和icon和在裝置上安裝的product name和icon聯絡起來。product name不能超過255位元組長度而且不能少於兩個字元長度。

The organization name is an attribute of the Xcode project and is used in boilerplate text throughout your project folder. For example, the organization name is used in the source and header file copyright strings. The organization name in your Xcode project isn’t the same as the company name that you enter later in iTunes Connect.

organization name是xcode工程的一個屬性並且用於貫穿項目folder的樣本檔案text。例如,organization name用於source和header檔案中的copyright字串。organization name和你之後在itunes connect中輸入的company name不同。

The product name and company identifier you enter are concatenated to create the default bundle ID using reverse domain name service (reverse DNS) notation. The bundle ID needs to be unique to your app, so it’s important to set the company identifier to a unique string as well. 

bundle id需要是唯一的。product name和company identifier串聯起來就是預設的bundle id。所有company identifer是唯一的也很重要。例如:

orgnization identifier是com.xxx,product name是hellow world,那麼預設的bundle id就是com.xxx.hellow world. 一般的orgnization identifer就是你公司的網域名稱顛倒過來寫。

For iOS apps, you can choose the types of devices you support from the Devices pop-up menu. For Mac apps, you can choose the Mac App Store categories from a pop-up menu.

The other values used by the Xcode template are sufficient for building and running your app locally, but later you’ll need to finalize properties, such as the bundle ID. Also, the assistant doesn’t set all required properties for the store. You complete the basic store configuration before you submit. Ideally, you’ll complete this configuration before you distribute your app for testing too.

After your app is released, you can’t change some of this metadata, so it’s important to choose your settings carefully. To learn which app states cause some properties to be locked in iTunes Connect, refer to iTunes Connect App Properties in iTunes Connect Developer Guide . 

當你的app發布以後,你就不能更改其中的一些metadata了,所以謹慎選擇你的設定非常重要。

Before You Begin Configuring Your Project Configuring Identity and Team Settings 

For Xcode to create the team provisioning profile, the app’s bundle ID needs to be unique and the project assigned to a team. Later, you provide other information that identifies this version of your app. The identity settings appear in the Identity section of the target’s General pane. For iOS apps, the Identity section appears as shown here: 

xcode建立team provisioning profile,app的bundle id需要是唯一的並且project要分配給一個team。而後,你提供其他的資訊來標示你app的版本。

About Bundle IDs  

A bundle ID precisely identifies a single app. A bundle ID is used during the development process to provision devices and by the operating system when the app is distributed to customers. For example, Game Center and In-App Purchase use a bundle ID to identify your app when using these app services. The preferences system uses this string to identify the app for which a given preference applies. Similarly, Launch Services uses the bundle ID to locate an app capable of opening a particular file, using the first app it finds with the given identifier. The bundle ID is also used to validate an app’s signature.

The bundle ID string must be a uniform type identifier (UTI) that contains only alphanumeric characters (A-Z,a-z,0-9), hyphen (-), and period (.). The string should be in reverse-DNS format. For example, if your company’s domain is Acme.com and you create an app named Hello, you could assign the string com.Acme.Hello as your app’s bundle ID. 

一個bundle ID精確的標示一個app。當開發中執行到provison裝置或者當發布給客戶時候都需要bundle id。例如,當使用game center和in-app purchase服務是使用bundle id來標示你的app。系統偏好使用這個bundle id來標示app。類似的,launch services使用bundle id來定位app開啟特殊的檔案。bundle id也用來驗證app的簽名。

bundle id字串必須只能辦好阿拉伯數字和字元(A-Z,a-z,0-9), hyphen (-), and period (.)。字串應當是點到的dns格式。例如你的公司的網域名稱是Acme.com並且你建立了一個app叫做hello。那麼你就可以拿com.Acme來作為你的app的bundle id了。

During the development process, you use an app’s bundle ID in many different places to identify the app. 

在開發過程中,你可以在許多不同的地方來使用app的bundle id來標示app。

Specifically, the bundle ID is located and used as follows:

In the Xcode project, the bundle ID is stored in the information property list file (Info.plist). This file is later copied into your app’s bundle when you build the project.

In Member Center, you create an App ID that matches the app’s bundle ID. If the App ID is an explicit App ID, it exactly matches the bundle ID. However, unlike domain names, bundle IDs are case sensitive. If the App ID is lowercase, your bundle ID needs to be lowercase, too.

In iCloud, the container IDs you specify in your Xcode project are based on the bundle IDs of one or more apps.

In iTunes Connect, you enter the bundle ID to identify your app. After your first version is available on the store, you can’t change your bundle ID or delete the associated explicit App ID. 

在xcode工程中,bundle id儲存在property list檔案(Info.plist)中。這個檔案之後當你build項目時會copy到你app的bundle中去。

在member center,你建立一個匹配你app bundle id的app id。如果app id時一個顯示的app id,他會完全符合bundle id。儘管如此但是,不想domain命名,bundle ids是大小寫敏感的。如果app id是小寫,你的bundle id也需要是小寫。

在itunes connect中,你輸入bundle id來標示你的app。當第一個版本在store中存在時,你就不能再更改你的bundle id或者刪除和其相關聯的顯示的app id。

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

App Distribution Guide (二)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.