xcode 启动远程程序时出错:没有那个文件或目录
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10204686/
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
Error launching remote program: No such file or directory
提问by Amjad Khan
Anyone have an idea about this
任何人都对此有想法
Error launching remote program: No such file or directory (/Users/muself/Library/Developer/Xcode/DerivedData/myproject-hlelojuljidnnagbdqzliazpdgmn/Build/Products/Debug-iphoneos/myproject.app/myproject).
Error launching remote program: No such file or directory (/Users/muself/Library/Developer/Xcode/DerivedData/myproject-hlelojuljidnnagbdqzliazpdgmn/Build/Products/Debug-iphoneos/myproject.app/myproject).
The project was working fine with the previous Xcode versions. I have just updated the Xcode to Version 4.3.2 (4E2002), & the error start coming.
该项目在以前的 Xcode 版本中运行良好。我刚刚将 Xcode 更新到版本 4.3.2 (4E2002),并且错误开始出现。
I have search on the web, and tried a lot of the options like
我在网上搜索过,并尝试了很多选项,例如
Quit Xcode, clear the Derived Data folder, restart the Xcode. Rename the project, Reset the device,etc I also tried this on another machine but did not work, the same problem occurs.
退出 Xcode,清除 Derived Data 文件夹,重新启动 Xcode。重命名项目,重置设备等我也在另一台机器上试过这个,但没有奏效,出现同样的问题。
But one thing i have some other projects as well and they are working fine.
但有一件事我还有其他一些项目,它们运行良好。
Thanks for at least reading this.
感谢您至少阅读本文。
回答by Himanshu Agnihotri
First try restarting Xcode. If it doesn't work, then try hard reset of your device. This happens to me when I change the bundle identifier of my app. This solution,I found of the above problem its working fine for me.:)
首先尝试重新启动Xcode。如果它不起作用,请尝试硬重置您的设备。当我更改应用程序的包标识符时,就会发生这种情况。 这个解决方案,我发现上述问题对我来说很好。:)
回答by haawa
have you tried to "validate settings" (button on the bottom of project settings)? Do you use some static libs in your app? – Vov4yk
您是否尝试过“验证设置”(项目设置底部的按钮)?你在你的应用程序中使用了一些静态库吗?– Vov4yk
回答by igorsales
Check your deployment target. I am running Xcode 4.5, and it gave me that cryptic message, while the reason was that my iPad is running version 5.1.1, and my app was set with deployment target of 6.0.
检查您的部署目标。我正在运行 Xcode 4.5,它给了我那个神秘的消息,而原因是我的 iPad 运行的是 5.1.1 版,而我的应用程序的部署目标设置为 6.0。
回答by Naga Harish M
I also get same problem. This below solution works for me. Thats really annoying. This error happens in a number of different situations. Sometime restarting the Xcode, fixes the problem. If not, follow these steps:
我也遇到同样的问题。下面的解决方案对我有用。那真的很烦人。此错误发生在许多不同的情况下。有时重新启动 Xcode,解决问题。如果没有,请按照以下步骤操作:
Disconnect your device.
Delete the app from your device.
Quit xcode (Don't just simply close the window, quit it)
Delete derived data folder (~/Library/Developer/Xcode/DerivedData/APPNAME -gbrvhlvwmpiobxdujegtghggrffp - or something like that)
Now start Xcode, connect device and run the project. It should work fine.
断开您的设备。
从您的设备中删除该应用程序。
退出 xcode(不要只是简单地关闭窗口,退出它)
删除派生数据文件夹(~/Library/Developer/Xcode/DerivedData/APPNAME -gbrvhlvwmpiobxdujegtghggrffp - 或类似的东西)
现在启动Xcode,连接设备并运行项目。它应该可以正常工作。
Source: http://dhilipsiva.com/2012/07/24/xcode-could-not-launch-app-no-such-file-or-directory-error.html
来源:http: //dhilipsiva.com/2012/07/24/xcode-could-not-launch-app-no-such-file-or-directory-error.html
回答by Nick T
Hard reset of the device fixed it for me. i.e. power off and back on. Quitting Xcode, disconnecting, reconnecting the device etc didn't.
设备的硬重置为我修复了它。即关闭电源并重新打开。退出 Xcode、断开连接、重新连接设备等都没有。
The error occurred just after I had created a new project with the a duplicate Bundle Identifier to another. Both apps coexist OK on the device/ in Xcode, but this does seem to cause the above issue.
错误发生在我创建一个新项目后,该项目具有与另一个重复的 Bundle Identifier。两个应用程序在设备上/在 Xcode 中都可以共存,但这似乎确实导致了上述问题。
回答by Alex Tau
I saw this when I let the build configuration set up as ad-hoc. After I put it back to Debug it worked fine.
当我让构建配置设置为 ad-hoc 时,我看到了这一点。在我把它放回 Debug 后,它工作正常。