ios Xcode 中的存档按钮变灰

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

Archive button grayed out in Xcode

iosxcodeios-simulatorxcode10xcode-scheme

提问by Andy

Would you be able to help me understand the reason why Archive button is grayed out in Xcode?

您能帮我理解为什么 Xcode 中的存档按钮变灰的原因吗?

screenshot

截屏

I have all developers profiles downloaded

我已经下载了所有开发人员配置文件

screenshot

截屏

Device type set to iPhone 6

设备类型设置为 iPhone 6

http://i.stack.imgur.com/fMkmN.png

http://i.stack.imgur.com/fMkmN.png

And archive is checked in scheme.

并在方案中检查存档。

http://i.stack.imgur.com/66pRt.png

http://i.stack.imgur.com/66pRt.png

回答by Hasya

Answer valid through XCode 7, 8, 9, 10 and 11 + .

答案通过 XCode 7, 8, 9, 10 和 11 + 有效。



You can not archive,because from target you have not selected deviceor Generic iOS device, still there is a simulator.

您无法存档,因为从目标中您还没有选择设备通用 iOS 设备,仍然有一个模拟器。

Nothing generic or wrong with Xcode 7. This happens with all XCode versions.

Xcode 7 没有任何通用或错误。所有 XCode 版本都会发生这种情况。



  • Problem - Why archived button is grayed out?
  • 问题 - 为什么存档按钮是灰色的?

enter image description here

在此处输入图片说明



  • Solution - Why archived button is not grayed out?
  • 解决方案 - 为什么存档按钮没有变灰?

enter image description here

在此处输入图片说明

Have a happy coding.

祝你编码愉快。