简体   繁体   English

尝试验证档案时Xcode 5崩溃

[英]Xcode 5 crashing when trying to validate archives

I had a couple questions when trying to put an app on the app store. 尝试在应用商店上放置应用时,我有几个问题。

1) With Xcode 5 when trying to validate the archived project, Xcode 5 keeps crashing when trying to download the provisioning profile from the net. 1)在尝试验证存档项目时使用Xcode 5,当尝试从网上下载配置文件时,Xcode 5一直崩溃。 I have refreshed the provisioning profiles using the Preferences >> Accounts >> View Details and have clicked the refresh button but it still crashes when I try to validate. 我已经使用“首选项” >>“帐户” >>“查看详细信息”刷新了配置文件,并单击了“刷新”按钮,但是在尝试验证时仍然崩溃。

2) Is it best practice to have a separate distribution certificates and provisioning profiles for each app you put on the app store? 2)最好的做法是为您放在应用商店中的每个应用单独拥有分发证书和配置文件吗? right now I have a separate provision profile for my apps but they are under one certificate. 现在,我为我的应用程序提供了单独的配置文件,但是它们具有一份证书。 Can you guys tell me what the best practice is? 你们能告诉我最佳做法是什么吗?

3) And can you try to explain what the certificates and the provision profiles are doing? 3)您可以尝试解释证书和配置文件的功能吗? Also, what would the difference between distribution provision profiles and development provisioning profiles. 另外,发行条款概要和开发条款概要之间会有什么区别。

1) - Check what version of Xcode you're running. 1)-检查您正在运行的Xcode版本。 I had a similar issue where I was running a developer preview - you can't submit an app from a DP version of Xcode, and mine was crashing at the exact same point as yours. 我在运行开发人员预览版时遇到了类似的问题-您无法从Xcode的DP版本提交应用程序,而我的崩溃恰恰与您的崩溃相同。

2) - Having 2 certificates - 1 for dev, 1 for distribution seems to be the norm. 2)-拥有2个证书-开发人员1个,发行1个似乎很普遍。 I would suggest that you use explicit app ids and not the wildcard ID when you go to create your App ID though. 我建议您在创建应用程序ID时使用显式的应用程序ID,而不要使用通配符ID。

3) The way I see it, Provisioning profiles are your wrappers for your different things that make it up - mainly the signing certificate, the app id and the device id(s) - You select either a distribution or a dev signing certificate to determine if the app is being developed or submitted to the app store. 3)从我的角度来看,Provisioning配置文件是组成它的各种不同东西的包装物-主要是签名证书,应用程序ID和设备ID-您可以选择发行版或开发者签名证书来确定是否正在开发或提交给应用商店的应用。 You select the App ID to tell the app what functions it will have (iCloud, Data protection, etc) and what teams can work on the app. 您选择应用程序ID可以告诉应用程序它将具有哪些功能(iCloud,数据保护等)以及哪些团队可以在该应用程序上工作。 The Devices are what UDIDs are authorised to run this app that has this associated provisioning profile. 设备是具有运行此关联的配置文件的已授权UDID的应用程序。 The provisioning profile is how it's all packaged up. 供应配置文件是如何打包的。

As another way to look at it, You have your .ipa file (your app) and your provisioning profile. 另一种查看方式是,您拥有.ipa文件(您的应用程序)和配置文件。 The device looks at the profile, checks if the devices UDID is present in the provisioning profile, checks the App ID to see what features it's allowed to run, and the certificate is used to sign it all off. 设备查看配置文件,检查配置配置文件中是否存在设备UDID,检查应用程序ID以查看允许其运行的功能,并使用证书将其全部注销。

Hope this helps. 希望这可以帮助。

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

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