ios 如何在 Xcode 6 中创建 IPA?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25970741/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-31 02:41:50  来源:igfitidea点击:

How to create IPA in Xcode 6?

iosobjective-ciphonexcodexcode6

提问by bhavik

In my project I can not figure out how to create an IPA file. Can anyone explain, step by step, how to make IPA file in Xcode 6?

在我的项目中,我不知道如何创建 IPA 文件。谁能一步一步解释如何在 Xcode 6 中制作 IPA 文件?

回答by nikhil84

you could follow below:

你可以按照以下:

1.Select your swiftDemo in your xcode(left-hand side as shown) Then select Productoption, in which you could select Archiveoption.

1.在您的xcode中选择您的swiftDemo(如图所示的左侧)然后选择产品选项,您可以在其中选择存档选项。

Select Archive - The highlighted one in the image

选择存档 - 图像中突出显示的那个

  1. Then a new window would open up as follow and in that window select the exportoption
  1. 然后将打开一个新窗口,如下所示,并在该窗口中选择导出选项

Select Export option

选择导出选项

3.Then a pop up will come as below and select first option as you looking for apple store. So now follow as it say.

3.然后将弹出如下所示,并在您寻找苹果商店时选择第一个选项。所以现在按照它说的去做。

Select First option

选择第一个选项

UPDATE-> Select the Save to ad-hoc deployment as below

UPDATE-> 选择 Save to ad-hoc deployment 如下

Save to ad-hoc

保存到临时

-> then if you have not sign with your apple developer id then below screen would pop-up

-> 那么如果您还没有使用您的苹果开发者 ID 进行签名,则会弹出下面的屏幕

Add apple id

添加苹果id

-> Now select add in this and provide your apple id and password in new window as shown.

-> 现在选择添加并在新窗口中提供您的苹果 ID 和密码,如图所示。

apple id and password required

需要苹果ID和密码

-> Rest follow as guided by xcode and finally you will have your IPA file.

-> 按照 xcode 的指导休息,最后您将拥有 IPA 文件。

-> Go with your testflight.

-> 继续你的试飞。

Don't forget to provide your provisioning profile and certificates in code-signing your build setting in xcode.

不要忘记在 xcode 中对构建设置进行代码签名时提供您的配置文件和证书。

回答by Badal Shah

If you want to upload .ipa file to itunesconnect without integrating developer account in Xcodeand you want to use application loader. then you can generate .ipa with iTunes.

如果您想将 .ipa 文件上传到 itunesconnect而不在 Xcode 中集成开发者帐户,并且您想使用application loader。然后你可以用 iTunes 生成 .ipa

Step 1 :-Select device inplace of simulator.

第 1 步:-选择设备代替模拟器。

enter image description here

在此处输入图片说明

Step 2 :-Go to Product -> select Archive

第 2 步:-转到产品 -> 选择存档

enter image description here

在此处输入图片说明

Step 3 :-After complited process right click to your Archive -> and select show in Finder

第 3 步:-完成过程后,右键单击您的存档 -> 并选择在 Finder 中显示

enter image description here

在此处输入图片说明

Step 4 :-when you click on show in finder you will redirect to Archive folder, looks like this

第 4 步:-当您单击在 finder 中显示时,您将重定向到存档文件夹,如下所示

enter image description here

在此处输入图片说明

Step 5 :-Right click on .xarchive file -> select Show Package Contents option.

第 5 步:-右键单击 .xarchive 文件 -> 选择 Show Package Contents 选项。

enter image description here

在此处输入图片说明

Step 6 :-Go to Product Folder -> Application Folder -> You will find yourprojectname.app

第 6 步:-转到产品文件夹 -> 应用程序文件夹 -> 您将找到 yourprojectname.app

enter image description here

在此处输入图片说明

Step 7 :-Now to convert .app to .ipa just drag and drop into itunes . check below image ,

第 7 步:-现在要将 .app 转换为 .ipa,只需将其拖放到 iTunes 中即可。检查下图,

enter image description here

在此处输入图片说明

Step 8 :-Now put this .ipa file in safe place and use when upload with application loader .

第 8 步:-现在将这个 .ipa 文件放在安全的地方,并在使用应用程序加载器上传时使用。

Note :-if you want to know how to upload app with application loader then check this ,

注意:-如果您想知道如何使用应用程序加载器上传应用程序,请检查此内容,

Upload app with application Loader

使用应用程序加载器上传应用程序

EDIT :-

编辑 :-

WARNING :-Don't make .ipa with changing extension from .aap to .zip and .zip to .ipa.

警告:-不要将 .ipa 的扩展名从 .aap 更改为 .zip,将 .zip 更改为 .ipa。

I have seen in many answer that , they have suggest compress .app file and then change the extension from .zip to .ipa . It is not working now . By this method you will get Error like ,

我在很多答案中看到,他们建议压缩 .app 文件,然后将扩展名从 .zip 更改为 .ipa 。现在不行了。通过这种方法,你会得到类似的错误,

IPA is invalid, it does not include a payload directory.

IPA 无效,它不包含有效负载目录。

回答by Sayka

1. Make your application with X-Code

.

.

2. Run your application in simulator

.

.

3. Open finder, Goto -> /Library/Developer/XCode/DerivedData/<Your App Name-blahblahblah>/Build/Products/Debug-iphonesimulator

.

.

4. Open iTunes -> Goto Apps

.

.

5. Drag YourApplication.app to iTunes

.

.

6. Drag back your app from iTunes to finder to get YourApplication.ipa

回答by user140290

In XCode Version 9.0 (9A235):

在 XCode 版本 9.0 (9A235) 中:

    1. Archive your Project
    1. Click Window->Organizer, select your archived project. Click Export
    1. Select Development (option)
    1. Click Next and Sign the App and export
    1. 归档您的项目
    1. 单击 Window->Organizer,选择您的归档项目。单击导出
    1. 选择开发(选项)
    1. 单击下一步并签署应用程序并导出

This will export publish content to a location, where you can find the .ipa file.

这会将发布内容导出到一个位置,您可以在该位置找到 .ipa 文件。