Xcode“构建和存档”菜单项已禁用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3087089/
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 'Build and Archive' menu item disabled
提问by toofah
I have been using the new 'Build and Archive' feature of the latest Xcode 3.2.3. I like it.
我一直在使用最新 Xcode 3.2.3 的新“构建和存档”功能。我喜欢。
Now I noticed that it is always disabled for some reason. I can't seem to figure out what I changed to cause this.
现在我注意到由于某种原因它总是被禁用。我似乎无法弄清楚我改变了什么导致了这个。
回答by bealex
Build configiuration setting needs to be an "iOS Device" (or any specific device if connected) to activate "Product → Archive" menu item. For some strange reason when any kind of iOS Simulator is selected, Archive is greyed out.
构建配置设置需要是“iOS 设备”(或任何特定设备,如果已连接)以激活“产品 → 存档”菜单项。For some strange reason when any kind of iOS Simulator is selected, Archive is greyed out.
回答by iamdavidlam
in my case, the archive checkbox was unchecked. =/ strange
就我而言,存档复选框未选中。=/奇怪
回答by Scott
All you need to do is create an Executable File in your project folder... If you start with a fresh project there are NO executable projects, only what you create, be it a .cpp or a .m you need an executable in the folder.
您需要做的就是在您的项目文件夹中创建一个可执行文件...如果您从一个新项目开始,则没有可执行项目,只有您创建的内容,无论是 .cpp 还是 .m,您都需要一个可执行文件文件夹。
回答by James Roeiter
In addition to what @Alexander Babaev said , when I had this problem it was because for some reason the build configuration was set to MAC 64 bit (dont know how it got there...) , returned it to IOS and it got enabled again.
除了@Alexander Babaev 所说的,当我遇到这个问题时,是因为出于某种原因,构建配置被设置为 MAC 64 位(不知道它是如何到达那里的...),将其返回给 IOS 并再次启用.
回答by ZahraAsgharzade
in xcode 10.2
:
make your project on Generic ios devices
tab and go to product>archive
to archive your project after if you want to see all your archived history go to windows>organizer
tap .
在xcode 10.2
:在Generic ios devices
选项卡上创建您的项目,然后转到product>archive
存档您的项目,如果您想查看所有存档历史记录,请windows>organizer
点击 。
回答by MacMark
You can delete your project scheme in "manage schemes …" and then click "autocreate schemes now" in the manage schemes window. This gives back the archive option.
您可以在“管理方案...”中删除您的项目方案,然后在管理方案窗口中单击“立即自动创建方案”。这会返回存档选项。
回答by Ivar van Wooning
Had been messing around with this for quite some time too. Don't forget to click on 'Validate Settings' at the bottom after you've checked the 'Prerendered' tickbox in the summary tab. And if you're deploying your app to the iPhone or iPad, make sure you delete the app first and then build it again. Otherwise your icons will still be the same.
也一直在搞这个。在选中摘要选项卡中的“预渲染”复选框后,不要忘记单击底部的“验证设置”。如果您要将应用程序部署到 iPhone 或 iPad,请确保先删除该应用程序,然后重新构建它。否则您的图标将仍然相同。
回答by Gerry Beauregard
Quitting and relaunching XCode sometimes helps. It usually does for me, if choosing an iOS device doesn't do the trick.
退出并重新启动 XCode 有时会有所帮助。如果选择 iOS 设备不起作用,它通常对我有用。
回答by Abhishek Pathak
First you have to add a ios device then go to product on the top then click it after that you can get enadled Archive option .
首先,您必须添加一个 ios 设备,然后转到顶部的产品,然后单击它,然后您可以获得启用存档选项。
回答by MrManlyMan
You need to download the application_tools_1.1.dmg
您需要下载application_tools_1.1.dmg