How to reverse engineer an Xcode project from an app?

后端 未结 2 1128
伪装坚强ぢ
伪装坚强ぢ 2021-01-16 15:36

Xcode deleted my project and everything is gone. The only thing that I have is the app in my iPhone 6. So is there any way that I can retrieve the Xcode project of the app?<

相关标签:
2条回答
  • 2021-01-16 16:17

    Unfortunately,

    There is no current way to un-archive an app. You must have the .xcodeproj file in order to make changes. The .ipa is useless in terms of editing or changing your app. And if there was a way to do so, it could and would be abused and many clones/copy's/fakes of popular apps will be published. The only accessible files are things in the Main Bundle which only include, .pngs, .jpg, .txt etc but no source code.

    0 讨论(0)
  • 2021-01-16 16:24

    Let's be clear: Xcode did not delete your project, you did, perhaps inadvertently. This does happen to most of us.

    The answer is to recover from your remote Git repository or recover from Time Machine or another backup. If you do not have any backup this is your first warning that you need a backup strategy. Make this your last such warning by immediately, as in right now, creating a backup scheme, preferably two. Little is more important.

    There are free remote Git repositories such as BitBucket. Setting up Time Machine is simple, just get an external disk, connect it and you will be prompted. Or use another backup scheme such as BackBlaze.

    Without a backup you can recover the assets but not code from the ipa from your phone. If you are using the Asset Catalog that is not easy but can still be done.

    0 讨论(0)
提交回复
热议问题