Xcode 4 - “存档”是灰色的?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5266350/
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 4 - "Archive" is greyed out?
提问by Nippysaurus
I would like to archive my application, but the Archive option is greyed out. What could cause this?
我想存档我的应用程序,但存档选项显示为灰色。什么可能导致这种情况?
回答by jason
You have to select the device in the schemes menu in the top left where you used to select between simulator/device. It won't let you archive a build for the simulator.
您必须在左上角的方案菜单中选择设备,用于在模拟器/设备之间进行选择。它不会让您为模拟器存档构建。
Or you may find that if the iOS device is already selected the archive box isn't selected when you choose “Edit Schemes” => “Build”.
或者您可能会发现,如果已经选择了 iOS 设备,则在选择“Edit Schemes”=>“Build”时未选择存档框。
回答by rockXrock
see the picture. but I have to type enough chars to post the picture.:)
看图片。但我必须输入足够的字符才能发布图片。:)
回答by Lee Brindley
As the other answers state, you need to select an active scheme to something that is not a simulator, i.e. a device that's connected to your mac.
正如其他答案所述,您需要为不是模拟器的东西(即连接到您的 mac 的设备)选择一个活动方案。
If you have no device connected to the mac then selecting "Generic IOS Device" works also.
如果您没有连接到 Mac 的设备,则选择“通用 IOS 设备”也可以。
回答by Ralph B
I fixed this today...sort of. Although the archives still don't show up anywhere. But I got the Archive option back by going into Build Settings for the project and re-assigning my certs under "Code Signing Identity" for each build. They seemed to have gotten reset to something else when imported my 3.X project to 4.
我今天修复了这个......有点。虽然档案仍然没有出现在任何地方。但是我通过进入项目的构建设置并在每个构建的“代码签名身份”下重新分配我的证书来恢复存档选项。将我的 3.X 项目导入到 4 时,它们似乎已重置为其他内容。
I also used the instructions found here:
我还使用了此处找到的说明:
But I still can't get the actual archives to show up in Organizer (even though the files exist)
但我仍然无法在管理器中显示实际档案(即使文件存在)