Xcode 产品 -> 存档已禁用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16050640/
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
Xcode Product -> Archive disabled
提问by user278859
I have been archiving for ad hoc distribution fine for many months and suddenly today I cannot do so as the Archive menu item is disabled. I have not changed anything. I went through the provisioning setup for the project and it looks ok.
我已经为临时分发存档了好几个月,但今天突然间我无法这样做,因为存档菜单项被禁用。我没有改变任何东西。我完成了项目的配置设置,看起来没问题。
My Ad Hoc profile is about to expire in 14 days. Could this be the problem? I don't believe I can renew it until the day it expires. There is a a "renew" button for my ad hoc profile in the organizer but when I click it I get...
我的 Ad Hoc 个人资料即将在 14 天后到期。这可能是问题吗?我不相信我可以在它到期之前续订它。在组织者中我的临时个人资料有一个“更新”按钮,但是当我点击它时,我得到...
The given profile was not found on the provisioning portal. Please refresh your provisioning profiles before attempting to renew “MyAddHocProfile”
在供应门户上找不到给定的配置文件。请在尝试更新“MyAddHocProfile”之前刷新您的配置文件
The profile in the provisioning portal shows active, expiring on the 30th. I noticed that I had not yet upgraded to 4.6.2 and did so. Then I downloaded my profile and double cliked it thinking that would refresh the profile in Xcode, still no joy. I also tried manually replacing the profile file MyAddHocProfile.mobileprovision in the Library.
配置门户中的配置文件显示为活动状态,将于 30 日到期。我注意到我还没有升级到 4.6.2 并升级了。然后我下载了我的配置文件并双击它,认为这会刷新 Xcode 中的配置文件,但仍然不高兴。我还尝试手动替换库中的配置文件 MyAddHocProfile.mobileprovision。
What do they mean "refresh your provisioning profile"?
“刷新您的配置文件”是什么意思?
Even so, I would think that as long as the profile is active, I should be able to create an archive. I must be doing something else wrong.
即便如此,我认为只要配置文件处于活动状态,我就应该能够创建存档。我一定是做错了什么。
回答by wiseindy
You've changed your scheme destination to a simulator instead of Generic iOS Device.
您已将方案目标更改为模拟器而不是Generic iOS Device。
That's why it is greyed out.
这就是它变灰的原因。
回答by Rabie
Change the active scheme Device from Simulator to Generic iOS Device
将活动方案 Device 从 Simulator 更改为 Generic iOS Device
回答by Steckdoserich
If you are sure that you selected the Generic iOS device
and still can't see the option, then you simply have to restart Xcode.
如果您确定选择了Generic iOS device
并且仍然看不到该选项,那么您只需重新启动 Xcode。
This was the missing solution for me as a cordova developer with Xcode 11.2
作为使用 Xcode 11.2 的cordova 开发人员,这是我缺少的解决方案