Xcode 6 企业发行版不起作用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26008319/
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-09-15 05:40:52  来源:igfitidea点击:

Xcode 6 enterprise distribution not working

iosxcodexcode6ad-hoc-distribution

提问by Debopam

I am using my company provided enterprise distribution profile (I donot have the userid/password to create the distribution profile) to distribute application. Recently I have upgraded from xcode 5.1 to 6. Since then I am unable to export ipa file. When I chose "Save for Enterprise Distribution" > Next it gives error "You need to add an Apple ID account that is enrolled in the iOS developer program". But earlier I used the same process to export application and used to show a window with company provided distribution profile name. Though it deploy application to my iPhone 5s. I have checked `/Library/MobileDevices/Distribution Profile has the provision profile.

我正在使用我公司提供的企业分发配置文件(我没有创建分发配置文件的用户名/密码)来分发应用程序。最近我从 xcode 5.1 升级到 6。从此我无法导出 ipa 文件。当我选择“保存用于企业分发”>“下一步”时,它会出现错误“您需要添加在 iOS 开发者计划中注册的 Apple ID 帐户”。但早些时候我使用相同的过程来导出应用程序并用于显示一个带有公司提供的分发配置文件名称的窗口。虽然它将应用程序部署到我的 iPhone 5s。我已经检查过`/Library/MobileDevices/Distribution Profile 有配置文件。

Please let me know what am I missing or I have to do to export for enterprise distribution of apps.

请让我知道我缺少什么,或者我必须做些什么才能导出应用程序的企业分发。

采纳答案by seanalltogether

I just hit this same problem. It appears that xcode 6 has added an arbirary restriction on exporting ipas with provisioning profiles that you aren't a team member of. You can get around it by manually exporting and signing using the cli.

我刚刚遇到了同样的问题。似乎 xcode 6 增加了对导出带有您不是团队成员的配置文件的 ipa 的任意限制。您可以通过使用 cli 手动导出和签名来绕过它。

http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/

http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/

回答by Micha?l Azevedo

I got the same issue and found this article which helped me a lot about creating an IPA from command line : http://www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-from-an-archive/

我遇到了同样的问题,发现这篇文章对我从命令行创建 IPA 有很大帮助:http: //www.thecave.com/2014/09/16/using-xcodebuild-to-export-a-ipa-从档案/

Since you already have your xcarchive created, only the last part is important :

由于您已经创建了 xcarchive,因此只有最后一部分很重要:

xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile “Provisioning Profile Name”

As mentioned in the article, the “Provisioning Profile Name”parameter is neither the name of the provisioning file nor the UDID, but the name of the provisioning as created in the iOS Dev Center. You can get it from Xcode (it's the name of the profile you used to compile) or using the iPhone Configuration Utility App http://support.apple.com/kb/DL1465

如文章所述,“Provisioning Profile Name”参数既不是配置文件的名称也不是 UDID,而是在 iOS 开发中心创建的配置名称。您可以从 Xcode(它是您用来编译的配置文件的名称)或使用 iPhone 配置实用程序应用程序http://support.apple.com/kb/DL1465 获取它

回答by smartkid

With the new Xcode 6 we need to log-in using a apple id which is signed in apple developer program or is a member of the apple developer program. Without developer account id we cannot built ipa with new Xcode. I was able to build the app after log-in to the app id.

使用新的 Xcode 6,我们需要使用已在 Apple Developer Program 中签名或 Apple Developer Program 成员的 Apple ID 登录。如果没有开发者帐户 ID,我们就无法使用新的 Xcode 构建 ipa。登录到应用程序 ID 后,我能够构建应用程序。