Xcode:删除管理器/档案中的应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7926804/
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: Delete applications in Organizer/Archives?
提问by CokePokes
I've been getting the "there was internal api error" message in Xcode and I've finally figured out what the problem was. Apps run with the same bundle identifier will result in this error.
我一直在 Xcode 中收到“存在内部 api 错误”消息,我终于弄清楚了问题所在。使用相同包标识符运行的应用程序将导致此错误。
Turns out that the apps aren't being deleted in Organizer. When I delete them, they disappear. But when I quit Xcode, reopen, enter organizer, the applications are still there.
事实证明,管理器中没有删除这些应用程序。当我删除它们时,它们就会消失。但是当我退出Xcode,重新打开,进入管理器时,应用程序仍然存在。
Are these Applications stored in Xcode or on my iDevice? Can I go in and manually remove them? What directory?
这些应用程序是存储在 Xcode 中还是存储在我的 iDevice 中?我可以进入并手动删除它们吗?什么目录?
Has anyone had this problem? Solutions?
有没有人遇到过这个问题?解决方案?
回答by djromero
In Xcode 4you can delete an archived application manually. Right click on it, Show in Finder, remove it as any other folder. Xcode will detect the deletion and update the list of archived apps.
在Xcode 4 中,您可以手动删除存档的应用程序。右键单击它,在 Finder 中显示,将其作为任何其他文件夹删除。Xcode 将检测删除并更新已归档应用程序列表。
Archives are just bundles with .xcarchive
extension under ${HOME}/Library/Developer/Xcode/Archives
. They are organized in folders by date (like 2011-11-11). You can look inside using Show Package Contentsmenu item, like any other bundle.
档案只是带有.xcarchive
扩展名的捆绑包${HOME}/Library/Developer/Xcode/Archives
。它们按日期组织在文件夹中(如 2011-11-11)。您可以使用Show Package Contents菜单项查看内部,就像任何其他捆绑包一样。
回答by quemeful
XCode 8
代码 8
You need to clear out this folder. It is where Xcode app archives are stored.
您需要清除此文件夹。它是 Xcode 应用程序存档的存储位置。
${HOME}/Library/Developer/Xcode/Archives
It will also save space on your hard drive. I found that I had upwards of 200 GBof app archives lol.
它还可以节省硬盘空间。我发现我有超过200 GB的应用档案,哈哈。
回答by Sujewan
Open Terminal, then goto this folder: cd ~/Library/Developer/Xcode/Archives
Perform delete all folders and files: rm -rf *
打开终端,然后转到此文件夹: cd ~/Library/Developer/Xcode/Archives
执行删除所有文件夹和文件:rm -rf *
You may need root permission to perform delete.
您可能需要 root 权限才能执行删除。
回答by Rich
I had a similar problem, which turned out to be caused by my having an older version of the same app loaded to my test iPhone. I forgot to delete it before I load the newer version. Once I deleted the old version from the iPhone, it runs just fine.
我有一个类似的问题,结果证明是因为我将同一应用程序的旧版本加载到我的测试 iPhone 上。我在加载新版本之前忘记删除它。一旦我从 iPhone 上删除了旧版本,它就运行得很好。
回答by Dhiraj Gupta
The "There was internal api error" message box also appears when your Apple Developer member certificate expired recently, and you're trying to run a codesigned app on to your device, and it already exists on the device.
当您的 Apple Developer 成员证书最近过期,并且您尝试在您的设备上运行代码签名应用程序并且该应用程序已存在于设备上时,也会出现“存在内部 api 错误”消息框。
Then, when you delete the app from the device you get the "no valid codesign certificate" message. Then you realize the above, and fix your certificate (and provisioning profile) and then things work again.
然后,当您从设备中删除应用程序时,您会收到“没有有效的协同签名证书”消息。然后您意识到上述内容,并修复您的证书(和配置文件),然后一切又恢复正常。
At least, that's what happened to me today. ;)
至少,这就是今天发生在我身上的事情。;)