你能帮我理解一下为什么存档按钮在Xcode中是灰显的吗?

screenshot

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

screenshot

设备类型设置为iPhone 6

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

并按方案判断档案.

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

推荐答案

Answer valid through Xcode 7, 8, 9, 10, 11 and 12+


You can not archive,因为您没有从目标中 Select deviceGeneric iOS deviceAny iOS Device,所以仍然有一个模拟器.

Xcode7没有任何泛型或错误.所有Xcode版本都会发生这种情况.


  • Problem - Why archived button is grayed out?

enter image description here


  • Solution - Why archived button is not grayed out?

enter image description here

在Xcode 12中,它被命名为Any iOS Device

Xcode 12

Ios相关问答推荐

崩溃到初始化react -带网页的原生iOS应用程序

检测touch 并忽略其他手势SWIFT SceneKit

ScrollViewReader Scrollto Not Working

如何使用参与者允许并行读取,但阻止对SWIFT中资源的并发读取和写入?

为什么AVSpeechSynthesizer复制的信息比我的文本多?

如何在 Swift 中存储具有关联值的协议?

无法使用 NavigationView 和 NavigationLink 在 SwiftUI 中弹出当前屏幕

SwiftUI 菜单中的内联水平按钮

无法在 CollectionView 中禁用部分弹跳 - 组合布局

在我的 M1 上出现 Architecture arm64 问题,因此我无法运行我的旧项目

视觉扫描无法识别 iOS16 上的 GS1 条码特殊字符

SwiftUI:如何为 ScrollView 制作可拉伸(灵活)的粘性标题?

弹出视图后使所有背景 UI 模糊

Text() 正在添加额外的前导尾随填充 SwiftUI

向左或向右移动时如何水平翻转sprite?

如何使用 sendAsynchronousRequest:queue:completionHandler:

在 iOS 8 中显示相机权限对话框

@IBDesignable 崩溃代理

Swift 将 unix 时间转换为日期和时间

AFNetworking 2.0 向 GET 请求添加标头