xcode 应用安装失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25234407/
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
App installation failed
提问by aleclarson
In Xcode 6 Beta 5, when I attempt to run my app after building, I receive an error dialog that says:
在Xcode 6 Beta 5 中,当我尝试在构建后运行我的应用程序时,我收到一个错误对话框,内容为:
App installation failed
Could not inspect the application package.
应用安装失败
无法检查应用程序包。
This happens on iOS 8 Beta 5, but not on iOS 7.1.1! I have not tested anything else.
这发生在iOS 8 Beta 5 上,但不会发生在iOS 7.1.1 上!我还没有测试过其他任何东西。
Any ideas for how I can fix this?
关于如何解决这个问题的任何想法?
回答by Jayprakash Dubey
I had this problem. Solution is to uninstall the app. Then clean project and then install app.
我有这个问题。 Solution is to uninstall the app. Then clean project and then install app.
回答by Subhash
I solved it by uninstalling(removing) the application from device manually and Run xcode application again. It will work.
我通过手动从设备卸载(删除)应用程序并再次运行 xcode 应用程序来解决它。它会起作用。
回答by Yubraj Basyal
Try editing the scheme of app. Set Run and Archive to debug not release. I was able to solve by this process.
尝试编辑应用程序的方案。将运行和存档设置为调试而不是发布。我能够通过这个过程解决。
回答by Nicholas
I have had this happen to me about 3 times since moving to Beta 5 and Xcode beta 5. I usually navigate to my Organizer and select Projects. Find your project on the left and delete it. Next I close Xcode and restart both my Mac and my Testing Device! Has helped every time!
自从迁移到 Beta 5 和 Xcode beta 5 后,我已经发生了大约 3 次这种情况。我通常导航到我的管理器并选择项目。在左侧找到您的项目并将其删除。接下来我关闭 Xcode 并重新启动我的 Mac 和我的测试设备!每次都有帮助!
回答by Tylerc230
Deleting the derived data folder worked for me.
删除派生数据文件夹对我有用。
回答by art
My solution which worked for me was to remove a symbolic link file referenced from a an directory entry an in my Build Phases->Copy Bundle Resources section. I had inadvertently placed the symbolic link there.
我的解决方案是删除从我的 Build Phases->Copy Bundle Resources 部分的目录条目中引用的符号链接文件。我无意中将符号链接放在那里。
回答by ObjSal
I got this error when using Xcode 9 beta, the problem was that I was trying to run an app on an iPhone 7 targeting armv7 instead of arm64.
我在使用 Xcode 9 beta 时遇到了这个错误,问题是我试图在 iPhone 7 上运行一个针对 armv7 而不是 arm64的应用程序。
This issue was not easy to track because I was building the app from Unity, so check the architecture configuration whenever you get this message.
这个问题不容易跟踪,因为我是从 Unity 构建应用程序的,所以每当收到此消息时,请检查架构配置。
回答by Ravi Kumar
Problem: Few times, if you add app extension where you have file and info plist, extension's file and plist are assigned to target, is wrong causes issue rises. Solution: Extension's all file should be assigned in App Extensions target, and info plist should not be assigned to any target.
问题: 很少,如果你在你有文件和信息 plist 的地方添加应用扩展,扩展的文件和 plist 被分配给目标,是错误的导致问题出现。解决方案:扩展的所有文件都应该在 App Extensions 目标中分配,并且 info plist 不应分配给任何目标。
回答by Arshad Shaik
Restarted my iphone it worked for me.
重新启动我的 iphone 它对我有用。