Xcode产品->存档已禁用
本文翻译自:Xcode Product -> Archive disabled
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. 我的临时配置文件将在14天后过期。 Could this be the problem? 这可能是问题吗? I don't believe I can renew it until the day it expires. 我不相信我可以在它到期之前更新它。 There is aa "renew" button for my ad hoc profile in the organizer but when I click it I get... 在管理器中,我的即席配置文件有一个“更新”按钮,但是当我单击它时,会得到...
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. 供应门户中的概要文件显示为活动状态,于30日到期。 I noticed that I had not yet upgraded to 4.6.2 and did so. 我注意到尚未升级到4.6.2。 Then I downloaded my profile and double cliked it thinking that would refresh the profile in Xcode, still no joy. 然后,我下载了我的配置文件,并两次赞了一下,以为可以刷新Xcode中的配置文件,但仍然不高兴。 I also tried manually replacing the profile file MyAddHocProfile.mobileprovision in the Library. 我还尝试手动替换库中的配置文件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. 我一定做错了其他事。
Thanks, 谢谢,
John 约翰
#1楼
参考:https://stackoom.com/question/15LVI/Xcode产品-gt-存档已禁用
#2楼
You've changed your scheme destination to a simulator instead of Generic IOS device . 您已将方案目标更改为模拟器,而不是通用IOS设备 。 That's why it is greyed out. 这就是为什么它显示为灰色。
#3楼
上面的Wiseindy答案很容易理解并且在历史上是正确的,但是在Xcode 7.3版中,选项不是IOS device
而是更精确的Generic IOS device
。
#4楼
将活动方案设备从模拟器更改为通用IOS设备
#5楼
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开发人员,这对我来说是缺少的解决方案