简体   繁体   English

无法从XCode 6.1导出IPA文件

[英]Can not export IPA file from XCode 6.1

I've wasted a day trying to export IPA file using development profiles. 我浪费了一天尝试使用开发配置文件导出IPA文件。 I'm a developer since 18 months now. 我是18个月以来的开发人员。 And its not something that i don't know about exporting IPA. 它不是我不知道出口IPA的东西。 And i really hate Apple developers for changing the way we used to export a simple IPA. 我真的很讨厌Apple开发人员改变我们以前导出简单IPA的方式。 I've already exported hundreds of times but this time i'm having no luck. 我已经出口了数百次,但这次我没有运气。

I think what is needed to export a successful IPA requires these things to be available in the system 我认为导出成功的IPA需要什么才能在系统中提供这些东西

  1. Private key with Certificate in Keychain -> Login -> My Certificates 私钥与钥匙串证书 - >登录 - >我的证书
  2. Login in with developer account in XCode -> Preferences -> Accounts 使用XCode中的开发者帐户登录 - >首选项 - >帐户
  3. Archive the project and select Export -> Save for Ad Hoc Deployment -> Select developer account from the list. 存档项目并选择导出 - >保存以进行特别部署 - >从列表中选择开发人员帐户。
  4. Wait until XCode does some magic. 等到XCode做了一些魔术。 (This is the part where XCode fails everytime. See attached screenshot please) (这是XCode每次都失败的部分。请参见附件截图)

在此输入图像描述

Here's what i've tried : 这是我尝试过的

  1. Removing all keychain certificates and provisioning profiles. 删除所有钥匙串证书和配置文件。 - DIDN'T WORKED - 没有工作
  2. Restart XCode and System (Almost 3 times) - DIDN'T WORKED 重启XCode和系统(差不多3次) - 没有工作
  3. Removing certificates and provisioning profiles from Apple developer portal and regenerate all of them. 从Apple开发人员门户中删除证书和配置文件并重新生成所有这些文件。 - DIDN'T WORKED - 没有工作
  4. Tried AirSign / Testflight. 试过AirSign / Testflight。 - DIDN'T WORKED - 没有工作

HINT: I am using XCode 6.1.1 GM SEED and previously had installed along with XCode 6.2 beta. 提示:我正在使用XCode 6.1.1 GM SEED,之前已经安装了XCode 6.2 beta。 But i removed XCode 6.2 Beta later 但我后来删除了XCode 6.2 Beta

Someone please tell me where i'm going wrong.. Thanks... 有人请告诉我我哪里出错..谢谢...

Starting from XCode 6, you have to generate an AdHoc type cerificate from the Apple Developer Center to be able to save the .ipa for AdHoc deployment. 从XCode 6开始,您必须从Apple开发人员中心生成AdHoc类型的证书才能保存.ipa以进行AdHoc部署。 I was also facing the same issue and generated a new certificate particularly for AdHoc Distribution . 我也面临同样的问题,并为AdHoc Distribution生成了新的证书。 Archiving using that resolved the issue. 使用它进行存档解决了这个问题。

I'd recommend you using the fastlane tools to handle every aspects of code signing and ipa generation. 我建议你使用fastlane工具来处理代码签名和ipa生成的各个方面。

The cert command allows you to create a new certificate as needed : no option for distribution certificate, --developement for a development one. cert命令允许您根据需要创建新证书:没有分发证书选项, - 开发证书的开发。

The sigh command allows you to create a new provisionning profile : no options = app store, --adhoc = ad hoc, --development = development sigh命令允许您创建新的配置文件:no options = app store, - adhoc = ad hoc, - development = development

The gym command allows you build ipa, same options as above ! 健身房命令允许您构建ipa,与上面相同的选项!

Meanwhile there's a trick for dev ipa generation : - set your code signing assets as needed for development in Xcode target 同时,dev ipa生成有一个技巧: - 根据需要设置代码签名资产,以便在Xcode目标中进行开发

  1. build the app for a device 为设备构建应用程序
  2. Go to te "Product" group folder in Xcode files navigator 转到Xcode文件导航器中的te“Product”组文件夹
  3. Ctrl-click on yourApp.app and click "Show in finder" 按住Ctrl键并单击yourApp.app,然后单击“在Finder中显示”
  4. Copy the .app in a new folder called "Payload" 将.app复制到名为“Payload”的新文件夹中
  5. Create a zip from this folder using Ctrl+click, archive 使用Ctrl +单击,存档从该文件夹创建一个zip
  6. Rename this archive as yourApp.ipa 将此存档重命名为yourApp.ipa

You're now able to install this dev signed ipa over the air or through iTunes on the devices recorded in the provisionning profile used to build the app. 您现在可以通过无线方式或通过iTunes在用于构建应用程序的配置文件中记录的设备上安装此开发签名的ipa。

You will not get this issues if you create certificated through xcode. 如果您通过xcode创建认证,则不会遇到此问题。

xcode->Preferences->Select Apple id->select account->view details->click on plus button xcode-> Preferences->选择Apple id-> select account-> view details->点击加号按钮

Useing this certificate revoke your provisioning profile then again 使用此证书会再次撤消您的配置文件

xcode->Preferences->Select Apple id->select account->view details-> click on refresh button xcode-> Preferences->选择Apple id-> select account-> view details->点击刷新按钮

Now you will not get this error 现在你不会得到这个错误

Try installing your distribution certificate and profile before creating IPA with developer profile. 在使用开发人员配置文件创建IPA之前,请尝试安装分发证书和配置 I faced this issue and that fixed it. 我遇到了这个问题并修复了它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM