Adobe
Produkte
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Weitere Produkte
Lösungen
Digitales Marketing
Digitale Medien
Bildungseinrichtungen
Finanzdienstleistungen
Behörden
Web Experience Management
Weitere Lösungen
Lernressourcen Hilfe Downloads Über Adobe
Kaufen
Home-Office für privaten Gebrauch und Heim­arbeits­platz
Education für Schüler, Studierende, Lehrkräfte, Dozenten und Mitarbeiter
Business Kleine und mittlere Unternehmen
Lizenzprogramme für Unternehmen, Bildungs- und Regierungs­ein­richtungen
Weitere Bestell­möglich­keiten
Sonder­angebote
Suchen
 
Info Anmelden
Willkommen, Mein Warenkorb Meine Bestellungen Mein Adobe
Mein Adobe
Meine Bestellungen
Meine Daten
Meine Einstellungen
Abmelden
Vorteile der Registrierung Als registrierter Anwender erhalten Sie Zugriff auf Ihr Konto, Testversionen, Produkterweiterungen, bestimmte Community-Bereiche u. v. m..
Adobe
Produkte Bereiche Kaufen   Suchen  
Lösungen Über Adobe
Hilfe Lernressourcen
Anmelden Abmelden Meine Bestellungen Mein Adobe
Voraussichtliche Verfügbarkeit bei VorbestellungDateIhre Kreditkartenkonto wird erst dann belastet, wenn das Produkt ausgeliefert wird. Änderungen des voraussichtlichen Verfügbarkeitsdatums sind vorbehalten. Voraussichtliche Verfügbarkeit bei VorbestellungDateIhre Kreditkartenkonto wird erst dann belastet, wenn das Produkt zum Download bereit ist. Änderungen des voraussichtlichen Verfügbarkeitsdatums sind vorbehalten.
Mge:
Für Ihre Bestellung ist ein Berechtigungsnachweis erforderlich.
Zwischensumme
Bestellung prüfen
Developer Connection / Dreamweaver Developer Center /

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

by 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

Seitentools

Auf Facebook posten
Auf Twitter posten
Auf LinkedIn posten
Lesezeichen
Drucken
Android best practice Dreamweaver HTML5 iOS mobile PhoneGap

Voraussetzungen

Erforderliche Kenntnisse

  • 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

Niveau

Einsteiger

Erforderliche Produkte

  • Dreamweaver (Download trial)

Beispieldateien

  • 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

  • Introducing the HTML5 video element
  • Checking for cross-browser CSS rendering issues
  • HTML5 and CSS3 in Dreamweaver CS5 – Part 2: Styling the web page
  • Understanding HTML5 intelligent forms – Part 1: New input elements
  • Understanding HTML5 semantics – Part 2: Document structure and global attributes
  • Using and customizing jQuery Mobile themes
  • Creating a multiscreen theme for WordPress using Dreamweaver CS5.5
  • Understanding HTML5 semantics – Part 1: New elements
  • Packaging web applications as mobile apps using Dreamweaver CS5.5
  • Getting started with jQuery Mobile

Produkte

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Photoshop
  • Touch Apps
  • Weitere Apps

Lösungen

  • Inhaltserstellung
  • Digitales Marketing
  • Web Experience Management

Branchen

  • Bildungswesen
  • Finanzdienstleistungen
  • Behörden

Hilfe

  • Produktspezifische Support-Seiten
  • Bestellungen und Retouren
  • Download und Installation
  • Mein Adobe

Lernressourcen

  • Adobe Developer Connection
  • Adobe TV
  • Schulung und Zertifizierung
  • Foren
  • Design Center

Bestellmöglichkeiten

  • Für privaten Gebrauch und Heim­arbeits­platz
  • Für Schüler, Studierende, Lehrkräfte und Dozenten
  • Für kleine und mittlere Unternehmen
  • Für Unternehmen und Organisationen
  • Sonderangebote

Downloads

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

Über Adobe

  • Presse
  • Partnerprogramme
  • Soziales Engagement
  • Offene Stellen
  • Investoren
  • Veranstaltungen
  • Rechtliche Informationen
  • Softwarepiraterie
  • Impressum
  • Sicherheit
  • Kontakt
Region wählen Deutschland (Ändern)
Region wählen Schließen

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.

Nutzungsbedingungen | Richtlinien für den Datenschutz und Cookies (Aktualisiert)

AdAuswahl