Adobe
產品
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
更多產品
解決方案
數位行銷
數位媒體
教育機構
金融服務業
政府機關
網頁體驗管理
更多解決方案
教學 說明 下載 公司
購買
家庭使用 適用於個人和家庭辦公室
授權方案 適用於企業、學校和政府機關
其他購買方式
搜尋
 
資訊 登入
歡迎, 我的購物車 我的貨品 我的客戶支援
我的帳戶
登出
為何要登入?登入即可管理您的帳戶並取得試用下載、產品擴充功能、社群討論區等。
Adobe
產品 產業 購買   搜尋  
解決方案 公司
說明 學習資源
登入 登出 我的貨品 我的客戶支援
Date Date
Qty:
Subtotal
Checkout
開發人員中心 / Dreamweaver 開發人員中心 /

Building a mobile app with PhoneGap and Dreamweaver – Part 6: Creating a release build for iOS

作者 Steve Gill

Steve Gill
  • Adobe
  • twitter.com/#!/stevesgill

Content

  • Importing the project into Xcode
  • Creating a provisioning profile
  • Installing the application to your device
  • Creating the release build
  • Where to go from here

Created

14 December 2011

頁面工具

在 Facebook 上共用
在 Twitter 上共用
在 LinkedIn 上共用
書籤
列印

Tags

系統需求

必須具備的知識

  • Building a mobile app with PhoneGap and Dreamweaver – Part 1, Part 2, Part 3
  • An app that you've tested using the iOS emulator in Dreamweaver and for which you want to create a release build.

 

Additional requirements

  • Eclipse

使用者等級

初學者

要求的產品

  • Dreamweaver (Download trial)

範例檔案

  • PhoneGap_sample_ios.zip

This is Part 6 of my seven-part series of tutorials in which you will learn how to rapidly create mobile applications for Android and iOS using Adobe Dreamweaver CS5.5, which comes with built-in support for PhoneGap. Part 1 provides an introduction to PhoneGap, and Part 2 focuses on using Dreamweaver, some common PhoneGap APIs, and the jQuery mobile framework to build a simple mobile application. Part 3 highlights tools and techniques for debugging. Parts 4 and 5 cover creating a release build for Android and submitting it to Android Market. It's OK to skip those parts of this series if you're not developing for Android.

In this part you'll learn how to create a release build of your application for iOS, with your own private signing key. You can use the sample app included with the sample files for this article as an example, or you can follow the steps outlined here using your own app.

If you've followed the steps in this tutorial series thus far, you should already have registered for a free Apple developer account and downloaded the iOS SDK. If you haven't done that yet, see Part 2 for more details.

Note: To complete this tutorial you will need to enroll in the iOS Developer Program. This program has a $99 yearly fee. The enrollment process can take a few hours or up to a few days.

You'll also need to download and install Xcode on a system running Mac OS X 10.6 or later.

Importing the project into Xcode

After installing Xcode, the first step is to import the project you built with Dreamweaver into Xcode.

  1. In Finder, open the directory in which Dreamweaver stored the build of your iOS project. In the sample files for this tutorial, this folder is named com.companyname.testapp_iOS.
  2. Double-click the Xcode project file in this directory to launch the project in Xcode. For example, double-click the testapp.xcodeproj sample file.
  3. In the top bar beside the Stop button, select an appropriate simulator and click the Run button to make sure the project was imported and that the app works. Your application should open in the iOS simulator.

Creating a provisioning profile

You'll need to create a provisioning profile to get your application onto your device. This section will guide you through setting up the necessary certificates and getting your iOS device and Mac provisioned properly.

  1. After your enrollment in the iOS Developer Program is confirmed by Apple, log into https://developer.apple.com/devcenter/ios/index.action.
  2. On the right side of the page, locate the iOS Developer Program panel and click iOS Provisioning Portal (see Figure 1).
Figure 1. The iOS Developer Program panel.
Figure 1. The iOS Developer Program panel.
  1. On the iOS Provisioning Portal welcome page, click the Launch Assistant button.
  2. In the next steps, you'll follow the on-screen instructions provided by the Development Provisioning Assistant (see Figure 2).
Figure 2. The Development Provisioning Assistant.
Figure 2. The Development Provisioning Assistant.
  1. Click Continue.
  2. Type an App ID description. Make it something descriptive about your app. The description you enter will be used throughout the provisioning process to identify your App ID. For my example, I typed dwtest. Click Continue.
  3. Next, you need to specify the Apple device that you are using for development and testing. If you've already set one up, simply select Use An Existing Apple Device and then select it. Otherwise, select Assign A New Apple Device and click Continue.
  4. Type a description of your device. For example, I typed Steves iPhone 4. (Special characters, including the apostrophe, are not permitted.)
  5. Type your Unique Device ID (UDID). To find it, connect your device to your Mac, choose Window > Organizer in Xcode, and select your device. Copy the 40-character string in the identifier field and paste it as the Device ID in the Development Provisioning Assistant.
  6. Click Continue.
  7. Next, you need to request a development certificate.

  8. In the Applications folder on your Mac, open the Utilities folder and double-click Keychain Access.
  9. After Keychain Access launches, choose Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority.
  10. In the Certificate Information dialog box, type the email address you used to register with the iOS Developer Program. In the Common Name field, type your name or your organization's name. Select Saved To Disk (see Figure 3) and click Continue.
Figure 3. The Certificate Assistant in Keychain Access.
Figure 3. The Certificate Assistant in Keychain Access.
  1. Note where the certificate signing request (CSR) is saved.
  2. Return to the Development Provisioning Assistant in your browser.
  3. Upload your CSR in the Development Provisioning Assistant and click Continue.
  4. Type a description for your provisioning profile and click Generate. Click Continue once it completes.
  5. Follow the on-screen instructions to download and install your provisioning profile. Click Continue.
  6. Follow the on-screen instructions to download and install your development certificate. Click Continue.
  7. Finish the instructions but don't install your application on your device yet. You will do that in the following section.

Installing the application to your device

  1. Before you create a release build, it's a good idea to install your application on your device.
  2. Go to your project in Xcode and in the jump bar at the top, switch from the simulator you chose earlier to your device (see Figure 4).
Figure 4. Selecting your device in Xcode.
Figure 4. Selecting your device in Xcode.
  1. Select the summary tab for your project in Xcode and set the Identifier to include the App ID you set up in the previous section (see Figure 5). For example, if you typed dwtest as the App ID earlier, you might set the identifier to com.yourcompany.dwtest.
Figure 5. The Xcode summary tab.
Figure 5. The Xcode summary tab.
  1. Select the orientations you want your application to support and add images for the app icons and splash screen.
  2. Click the Run button to build the application and install it on your device.

Creating the release build

Switching from a debug version of your application to a release version is straightforward.

  1. Click in the top bar beside the Stop button and choose Edit Scheme (see Figure 6).
Figure 6. Selecting Edit Scheme.
Figure 6. Selecting Edit Scheme.
  1. In the Edit Scheme dialog box, make sure Run is selected in the left side panel and select the Info tab in the main panel.
  2. Change the Build Configuration setting from Debug to Release (see Figure 7).
  3. Click OK.
Figure 7. The Edit Scheme dialog box.
Figure 7. The Edit Scheme dialog box.
  1. Make sure your device is connected to your Mac and selected in the jump bar beside the Stop button.
  2. Click the Run button.

You have just created a release build of your application and installed it onto your device.

Where to go from here

In this tutorial, you learned how to create a provisioning profile and a certificate used to build and install a release build of your application on your device. In Part 7 you'll learn how to distribute your application in the Apple App Store.

For information on setting up your provisioning profile, see the iOS Provisioning Portal website.

Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License+Adobe Commercial Rights

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

More Like This

  • Creating a simple three-column design
  • Best practices with CSS in Dreamweaver CS4
  • HTML5 and CSS3 in Dreamweaver CS5 – Part 2: Styling the web page
  • Introducing the HTML5 video element
  • Checking for cross-browser CSS rendering issues
  • Understanding HTML5 semantics – Part 2: Document structure and global attributes
  • Using Modernizr to detect HTML5 and CSS3 browser support
  • Using and customizing jQuery Mobile themes
  • Customizable starter design for multiscreen development
  • Introduction to media queries – Part 2: Building a responsive design

產品

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • 行動應用程式
  • Photoshop
  • Touch Apps

解決方案

  • 數位行銷
  • 數位媒體
  • 網頁體驗管理

產業

  • 教育機構
  • 金融服務業
  • 政府機關

說明

  • 產品說明中心
  • 訂購與退貨
  • 下載與安裝
  • 我的 Adobe

學習資源

  • Adobe Developer Connection
  • Adobe TV
  • 培訓與認證
  • 論壇
  • 設計中心

購買方式

  • 適用於個人和家庭辦公室
  • 授權方案
  • 其他購買方式

下載

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

公司

  • 新聞室
  • 合作夥伴方案
  • 企業社會責任
  • 工作機會
  • 投資者關係
  • 事件
  • 法律聲明
  • 安全性
  • 聯絡 Adobe
選擇您所在的國家/地區 台灣 (變更)
選擇您所在的國家/地區 關閉

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

使用條款 | 隱私權政策和 Cookies (更新)