如何在ios开发设备上备份和恢复应用程序?
我有几个人在 iPhone、iPod Touch 和 iPad 上使用我的应用程序,他们帮助我进行了开发。然而,我刚刚发现通过 XCode 放到设备上的应用程序没有通过 iTunes 同步进行备份,因此无法恢复。如何确保以这种方式放置在设备上的应用程序得到备份或恢复?有没有办法从捆绑包中取出数据文件,然后将它们放回去,以防他们需要从头开始恢复应用程序,然后恢复数据文件?
感谢您的回答。
I have several people with my app on iPhones, iPod Touches, and iPads, that helped me with development. However, I just discovered that apps put onto the devices through XCode are not backed up by an iTunes sync, and so are not restored. How can I ensure that apps I put on devices this way get backed up, or restored? Is there a way of getting data files out of the bundle, and putting them back in later, in case they need to restore the app from scratch and then restore the data files?
Thanks for your answers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 iTunes 而不是 Xcode 将应用程序安装到设备上。首先将应用程序的 ipa 文件拖放到 iTunes 上。您应该会看到该应用程序出现在应用程序列表中。然后只需将设备与 iTunes 同步即可。您可以使用 iTunes 以相同的方式安装配置文件。这就是我向其他国家/地区的测试人员发送应用程序测试版的方式。向他们发送 ipa 文件和配置文件。我建议仅使用您需要定义的设备创建一个单独的临时配置文件,而不是使用团队配置文件。
通过电子邮件发送应用程序的副本时,您应该首先将 ipa 文件压缩为 zip 文件。当用户解压该文件时,在 Mac 上他们将获得一个 ipa 文件。在电脑上,他们将获得一个与 ipa 文件同名的文件夹。您可以用同样的方式将 ipa 文件夹拖到 iTunes 上。
以这种方式安装应用程序时,将捆绑包显示名称更改为不同的名称也是一个好主意。否则,您将无法区分测试版和从应用程序商店购买的同一应用程序。
Try installing the app onto the device using iTunes instead of Xcode. First drag the app's ipa file and drop it onto iTunes. You should see the app appear in the apps list. Then just sync the device with iTunes. You can install the provisioning profile using iTunes in the same way. This is the way that I've sent beta versions of my apps to testers in other countries. Send them both the ipa file and the provisioning profile. I'd recommend creating a separate ad-hoc provisioning profile with just the devices you need defined instead of using the team provisioning profile.
When emailing a copy of the app, you should compress the ipa file into a zip file first. When the user unzips the file, on a mac they'll get an ipa file. On a pc they'll get a folder of the same name as the ipa file. You can drag the ipa folder onto iTunes in the same way.
It's also a good idea to change the bundle display name to something different when installing apps this way. Otherwise you won't be able to distinguish between the beta version and the same app purchased from the app store.