How to create an IPA (Xcode 5)

This tutorial will walk you through the easiest way to generate an IPA using Xcode 5. We will be using a sample project which will walk through creating the project to IPA generation.

NOTE: This tutorial only covers how to configure your project in order to package the application as an IPA. It does not cover how to create or migrate a project with or without 3rd party libraries.

NOTE: You will need an Apple Developer or Enterprise account to prepare an .IPA to be distributed.

Creating the Basic Application

  1. Choose a template for your new project. For this sample application, we will be creating a Single View Application.
  2. Enter your product name, company identifier, and other configuration options. The product name and company identifier will be combined to generate the Bundle Identifier. This will be used later to determine which provisioning profiles can be used when building and sharing the application.
  3. In the file list on the left drop down menu, select your target. On the General tab, notice the Bundle Identifier has been generated based on the values entered in step 2.
  4. Go to the Build Settings tab and scroll down to the Code Signing section and expand the Provisioning Profile settings. For the two default build configurations (Debug and Release), select your Development Provisioning Profile for Debug and your Ad Hoc Provisioning Profile for Release. 
  5. In the dropdown in the top left, select Edit Scheme. You will notice that the default build configurations have already been configured based on the build action being performed. If you are performing a Run action (Product -> Run) to test your application on the iOSSimulator or on your device, your app will be built using the Debug configuration, which in turn signs your app with the Development Provisioning Profile. If you are performing an Archive action (Product -> Archive), your app will be built with the Release configuration, which in turn signs your app with your Distribution Provisioning Profile (either Ad Hoc or App Store). 

Generate the IPA

The easiest way to generate an IPA, which can be uploaded to TestFlight, is to archive your applications and share it from the Xcode Organizer.

  1. Change the build target from iPad/iPhone Simulator to iOS Device.
  2. Under the Product menu, select Archive. This will build your application and code sign it using the Distribution (Ad Hoc or App Store) profilesetup in step 5 of the “Creating the Basic Application” section. Once the build has completed the Organizer window will appear. If it does not, open it using CMD-Shift–2 or Window -> Organizer. If you see a message popup saying “codesign wants to sign using key ”privateKey“ in yourkeychain.”, select Allow or Always Allow.
  3. Go to the Archives tab in Organizer and select your application, if it was not automatically selected, and choose the archive you wish to share.
  4. Click the Distribute button. In the next window select “Save for Enterprise or Ad-Hoc Deployment”, and click Next.
  5. In the Code Signing Identity drop down, select the same Distribution Provisioning Profile specified in the Release configuration from step 5 of the “Creating the Basic Application” section, and click Next. NOTE: When generating an IPA for distribution on TestFlight, you should always use an Ad Hoc Distribution Provisioning Profile for both the Archive and Distribute options.
  6. Select where you would like to save your IPA and upload to TestFlight.

Commonly Asked Questions

Q: Why must I use the same provisioning profile when archiving and generating my IPA?
A: When your application is compiled, information from the provisioning profile used to codesign your application is embedded in the application executable. When you generate your IPA, your application is codesigned again and the provisioning profile used to codesign is added to the IPA as the embedded.mobileprovision file. If there is a mismatch in certain pieces of information between the profile info in the executable and the profile info in the embedded.mobileprovision, this can cause the install to fail.

时间: 2024-08-08 21:26:01

How to create an IPA (Xcode 5)的相关文章

To create my first app in iOS with Xcode(在Xcode创建我的第一个iOS app )

To create my first app in iOS create the project. In the welcome window, click “Create a new Xcode project” (or choose File > New > Project). Xcode opens a new window and displays a dialog in which you choose a template. In the iOS section at the le

How To Use Git Source Control with Xcode in iOS 7

Note from Ray: Tutorial Team member Felipe Laso Marsetti has ported this tutorial to iOS 7 as part of the iOS 7 feast. We hope you enjoy! Whether you're a solo developer or working on a team, if you're not using source control for your projects, you

[译] 三、使用Xcode 5和界面生成器创建Hello World 应用

声明:本文翻译自AppCoda网站的文章:Creating Hello World App Using Xcode 5 and Interface Builder,作者是创建者Simon Ng.如有异议,请联系博主. 更新:基于苹果发布最新版的Xcode 6和Swift语言,我们更新最新版的Hello World教程. 这个Hello World教程在之前写过老版本的免费教程.我们想有必要使用Xcode 5来重新更新一遍教程(由于老的教程已经过时,译者就不再翻译老版本教程,希望各位读者谅解).关

Differences Between Xcode Project Templates for iOS Apps

Differences Between Xcode Project Templates for iOS Apps When you create a new iOS app project in Xcode, you get to choose between several project templates, from the aptly named “Empty Application” to specialized things like an “OpenGL Game”. I noti

iOS Sprite Kit教程之xcode安装以及苹果帐号绑定

iOS Sprite Kit教程之xcode安装以及苹果帐号绑定 其他的站点上下载安装Xcode 有时候,应用商店下载较慢,所以用户也能够选择从其它站点下载Xcode安装文件.以下解说这样的Xcode的安装步骤: (1)双击下载的Xcode软件,弹出正在打开此软件的对话框,如图1.26所看到的. (2)打开该软件后,就会弹出Xcode对话框,如图1.27所看到的. 图1.26  操作步骤1                                     图1.27  操作步骤2 (3)将

IOS 之二 Xcode

关于Xcode集成开发环境安装使用与建立项目流程: 1.Xcode介绍及安装 Xcode:是苹果公司推出集成开发环境 语言:C/C++,objectc c,swift OSX,可用于IOS平台,ipad,iphone,苹果电脑 2.Xcode 创建IOS Single View项目 ①点击Create a new Xcode project(创建一个Xcode项目,选择IOS目录下Application), ②选择Single view Application,->next,填写项目名, 语言选

fack xcode and ipad

我的ipad装不了ipa,, xcode连接ipad后hello world都不起来. http://stackoverflow.com/questions/26032085/xcode-6-process-launch-failed-timed-out-trying-to-launch-app http://stackoverflow.com/questions/22683419/xcode-5-could-not-launch-process-launch-failed-timed-out-

XCODE 6.1.1 配置GLFW

最近在学习opengl的相关知识.第一件事就是配环境(好烦躁).了解了一下os x下的OpenGL开源库,主要有几个:GLUT,freeglut,GLFW等.关于其详细的介绍可以参考opengl网站(https://www.opengl.org/wiki/Related_toolkits_and_APIs).由于GLUT太老了,os x 10.9之后已经不推荐使用了.而且freeglut据说bug有点多,在网上查了资料后还是选择了glfw这个开源库. 由于mac os系统继承了glut,xcod

Object-C 入门 Xcode 环境详解 HelloWorld 程序

作者 : 韩曙亮 转载请注明出处 : http://blog.csdn.net/shulianghan/article/details/38424965 一. Xcode 环境安装 与 工程创建 1. 下载环境 相关资源下载 : -- IOS 相关资料下载页面 : https://developer.apple.com/devcenter/ios/index.action ; -- Xcode 下载页面 : https://developer.apple.com/xcode/downloads/