Adobe
Productos
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Más productos
Soluciones
Marketing digital
Medios digitales
Educación
Servicios financieros
Administración
Gestión de experiencias web
Más soluciones
Formación Ayuda Descargas Empresa
Comprar
Uso doméstico Para uso personal y autónomos
Educación Para estudiantes, profesores y empleados
Empresas para pequeñas y medianas empresas
Programas multilicencia para empresas, centros educativos y gobiernos
Otras formas de comprar
Ofertas especiales
Búsqueda
 
Información Registro
Bienvenido, Mi carro Mis envíos Asistencia
Mi cuenta
Salir
¿Por qué registrarse? Regístrese para poder gestionar su cuenta y acceder a descargas de prueba, ampliaciones de productos, diferentes áreas de la comunidad y mucho más.
Adobe
Productos Secciones Comprar   Búsqueda  
Soluciones Empresa
Ayuda Aprendizaje
Registro Salir Mis envíos Asistencia
Date Date
Qty:
Subtotal
Checkout
Adobe Developer Connection / Centro de desarrollo de Dreamweaver /

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

por 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

Herramientas de página

Compartir en Facebook
Compartir en Twitter
Compartir en LinkedIn
Marcar como favorito
Imprimir

Tags

Requisitos

Conocimientos previos

  • 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

Nivel de usuario

Principiante

Productos necesarios

  • Dreamweaver (Download trial)

Archivos de muestra

  • 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

  • Checking for cross-browser CSS rendering issues
  • HTML5 and CSS3 in Dreamweaver CS5 – Part 2: Styling the web page
  • Introducing the HTML5 video element
  • Using Modernizr to detect HTML5 and CSS3 browser support
  • Understanding HTML5 intelligent forms – Part 2: New form attributes
  • Customizable starter design for jQuery Mobile
  • Customizable starter design for HTML5 video
  • Responsive design with jQuery marquee
  • Creating a simple three-column design
  • Best practices with CSS in Dreamweaver CS4

Productos

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

Soluciones

  • Marketing digital
  • Medios digitales
  • Gestión de experiencias web

Sectores

  • Educación
  • Servicios financieros
  • Administración

Ayuda

  • Centros de soporte de productos
  • Pedidos y devoluciones
  • Descarga e instalación
  • Mi Adobe

Aprendizaje

  • Adobe Developer Connection
  • Adobe TV
  • Formación y certificación
  • Foros
  • Centro de diseño

Formas de comprar

  • Para uso personal y autónomos
  • Para estudiantes, profesores y empleados
  • Para estudiantes, profesores y empleados
  • Para empresas, centros educativos y gobiernos
  • Ofertas especiales

Descargas

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

Empresa

  • Sala de noticias
  • Programas de socios
  • Responsabilidad social corporativa
  • Oportunidades laborales
  • Relaciones con los inversores
  • Actos
  • Jurídico
  • Seguridad
  • Contactar con Adobe
Seleccionar región España (Cambiar)
Seleccionar región Cerrar

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.

Condiciones de uso | Política de privacidad y cookies (Actualizado)