简体   繁体   English

无法从Xcode 5导出未签名的IPA

[英]Cannot export unsigned IPA from Xcode 5

Under Xcode 4 I was able to export an unsigned IPA in order to send that to clients with Enterprise accounts for resigning. 在Xcode 4下,我能够导出未签名的IPA,以便将其发送给具有企业帐户的客户以进行签名。 With the upgrade to Xcode 5 this option has been removed. 随着升级到Xcode 5,此选项已被删除。 I found a similar question that found a work around for Cocoa apps, but this won't work for iOS apps as it yields a .app file. 我发现了一个类似的问题 ,该问题找到了可可应用程序的解决方法,但这不适用于iOS应用程序,因为它会生成一个.app文件。

Does anyone know how an unsigned IPA can be generated from Xcode 5, or know of another way to give something to my client for resigning that doesn't involve trading certificates or the project itself? 有谁知道如何从Xcode 5生成未签名的IPA, 或者知道另一种不涉及交易证书或项目本身的方式向我的客户提供辞职的方法吗?

We had the exact same problem. 我们有完全相同的问题。 We used this process for a year to deliver an unsigned IPA to our client, who would then sign it when their Enterprise Profile to release it to all their employee's. 我们用了一年的时间将未签名的IPA交付给我们的客户,然后客户在他们的企业资料中对其进行签名,以将其发布给所有员工。 The work around turned out to be pretty straight forward. 事实证明,解决方法非常简单。 We just signed the IPA with one of our Distribution Profiles, and the customer, in turn, was able to take that signed IPA and resign it with their Enterprise Distribution Profile. 我们刚刚使用我们的分发配置文件之一对IPA进行了签名,而客户又可以采用该签名的IPA并将其与他们的企业分发配置文件一起辞职。 It turns out, having the "Don't Resign" option in the drop down was not needed. 事实证明,不需要下拉菜单中的“不辞职”选项。

You can run this in your *.xcodeproj directory: 您可以在*.xcodeproj目录中运行此命令:

xcodebuild -project YOUR_PROJECT.xcodeproj -exportArchive -exportFormat ipa -archivePath $(pwd)/YOUR_PROJECT.xcarchive -exportPath $(pwd)/YOUR_PROJECT.ipa CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -alltargets -configuration Release

You can create .xcarchive by running: 您可以通过运行以下命令来创建.xcarchive

xcodebuild -scheme YOUR_PROJECT_SCHEME archive CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -archivePath $(pwd)/YOUR_PROJECT.xcarchive

You can create scheme by using xcodeproj and this ruby (.rb) script: 您可以使用xcodeproj和以下ruby (.rb)脚本创建scheme

require 'xcodeproj'
xcproj = Xcodeproj::Project.open("YOUR_PROJECT.xcodeproj")
xcproj.recreate_user_schemes
xcproj.save

You can install xcodeproj by running: 您可以通过运行以下命令来安装xcodeproj

sudo gem install xcodeproj :)

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

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