Xcode 在 iOS8.4 和 Xcode 6.4 更新后应用安装失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31162847/
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 fails app install after iOS8.4 and Xcode 6.4 updates
提问by KMV
Out of nothing my app won't install on my test device (iPhone 6 on 8.4) anymore. I get a message saying "App installation failed. An unknown error has occurred". I updated today to iOS 8.4 and Xcode 6.4 could this have something to do with it?
我的应用程序将不再安装在我的测试设备(8.4 上的 iPhone 6)上。我收到一条消息,提示“应用程序安装失败。发生未知错误”。我今天更新到 iOS 8.4 和 Xcode 6.4 这可能与它有关吗?
App still runs on the simulator. Also if I change the name of the top folder I don't get the error and it works fine. Is there some path that I need to change and I am missing?
应用程序仍然在模拟器上运行。此外,如果我更改顶级文件夹的名称,我不会收到错误消息,并且工作正常。是否有一些我需要更改的路径而我错过了?
回答by Travis
This is now happening to me daily. The fix I've found is to clean the build folder. To clean the build folder, go to the product menu and hold down the option key. The "Clean" option will change to "Clean Build Folder."
这现在每天都发生在我身上。我发现的修复方法是清理构建文件夹。要清理构建文件夹,请转到产品菜单并按住选项键。“清理”选项将更改为“清理构建文件夹”。
If that doesn't work, then clean the derived data folder. Window -> Projects -> Select your Project -> Delete derived data folder.
如果这不起作用,则清理派生数据文件夹。窗口 -> 项目 -> 选择您的项目 -> 删除派生数据文件夹。
As a last resort, you can delete and reinstall the app.
作为最后的手段,您可以删除并重新安装该应用程序。
回答by KMV
Deleting the derived data folder as suggested by Travis solved the problem.
按照 Travis 的建议删除派生数据文件夹解决了这个问题。
Window - Projects - Select Project - Delete derived data
窗口 - 项目 - 选择项目 - 删除派生数据
回答by MarkKohDev
Deleting the Derived Data solved the problem for me (as Travis recommended).
删除派生数据为我解决了这个问题(正如 Travis 推荐的那样)。
I was having the problem after restarting an old project with the same Bundle Identifier and signing profile. When I went into the Projects window I saw that the old project was listed in the Projects list. I wound up deleting the old project (along with all of its derived data) and the derived data from the current app.
使用相同的捆绑标识符和签名配置文件重新启动旧项目后,我遇到了问题。当我进入“项目”窗口时,我看到旧项目列在“项目”列表中。我最终删除了旧项目(及其所有派生数据)和当前应用程序的派生数据。
This was the thing that finally solved the issue after many other attempts, including reinstalling xCode entirely. Thanks Travis!
这是经过许多其他尝试(包括完全重新安装 xCode)后最终解决问题的方法。谢谢特拉维斯!
回答by Mehul Thakkar
This worked for me:
这对我有用:
- Delete app on device manually
- Clean the product
- Run again
- 手动删除设备上的应用程序
- 清洁产品
- 再次运行