从 iPhone 恢复 Xcode 项目?
我的电脑最近崩溃了,我丢失了整个 Xcode 项目。但是,该项目一直保留在我的 iPhone 上,有什么办法可以恢复它吗?
My computer recently crashed and I lost my entire Xcode project. However, the project is till sitting on my iphone, is there any way i can recover it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
很抱歉,但我认为这无法从 iPhone 恢复您的项目,因为它包含已编译的版本。
I'm sorry but I think this is no way to recover your project from iPhone, as it contains already compiled version.
不幸的是,这是关于版本控制和备份的惨痛教训,
无法从编译的应用程序中恢复 Xcode 项目。
Unfortunately this is a painful lesson about version control and backups
There is no way to get the Xcode project back from the compiled app.
如果您可以访问您的 iPhone 并可以进入安装该应用程序的文件夹,那么您将找到几个可以使用的文件。特别是 *.png 文件。还有一些 *nib 文件 - 但我不知道它们是否/如何能够以某种方式加载回 xCode 中。
您还将得到 *strings 文件。但可能最重要的是,在此文件夹中还有项目的 *h 文件。
所以我想这会为你节省几个小时 - 你所需要的只是进入你的 iPhone 应用程序文件夹。我使用 iPhone Explorer,但其他任何东西也应该可以工作。
PS不知道如何在未越狱的手机上完成此操作,但
祝你好运!
将来使用 TimeMachine - 它很简单,并且在开发过程中不会给您的 MAC 带来负担...
if you can access your iPhone and could get to the folder where the app was installed then you will fnd couple of files you might be able to use. Esp *.png files. There are also some *nib files - but I don't know if/how they can be loaded back into xCode somehow.
You will also get the *strings files back. But possibly most important in this folder there are also *h files of your project.
So I guess that will save you already couple of hours - all you need is to get to your iPhones app folder. I use iPhone Explorer, but anything else should work too.
ps don't know how it can be done on a non-jailbroken phone though
good luck!
use TimeMachine in the future - its simple and doesn't burdon your MAC during development...