xcode 无法归档应用

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

Can't archive app

iosxcode

提问by Eugene Trapeznikov

I want to create .ipafile. In Distributing Appsit is said that I should archive my app firstly. Then choose Product > Archive.

我想创建.ipa文件。在分发应用程序中说我应该首先归档我的应用程序。然后选择Product > Archive

But this option is gray. Why?

但是这个选项是灰色的。为什么?

回答by andrei

In the select-box near your play and stop buttons (upper right) you should choose the device instead of the simulator.

在播放和停止按钮(右上角)附近的选择框中,您应该选择设备而不是模拟器。

Either:

任何一个:

  • Attach a physical device (iPhone, iPad) to the machine you are developing on and select that device.

  • Select "Generic iOS Device"

  • 将物理设备(iPhone、iPad)连接到您正在开发的机器上并选择该设备。

  • 选择“通用iOS设备”