如何在iOS 7的兼容模式下调试应用程序? [英] How to debug app in compatibility mode on iOS 7?
问题描述
所以iOS 7已经发布,很多用户已经升级了,即使我们正式不支持iOS 7,也要求大家不要升级。现在应用程序以兼容性模式运行,并且我们的用户报告了很多问题。问题是我不知道如何在兼容性模式下进行调试,所以有些问题真的很难解决。我试过Google,但到目前为止,我没有运气。
如何在兼容模式下在iOS 7上调试应用程序?
我想出了一个办法。这是我做的:
- 从App Store安装Xcode 5。 (如果已经安装,请跳过此步骤。)
- 确保您可以从Xcode 5部署到iOS 7设备。
- 从下载Xcode 4 Apple 。
- 打开dmg。
- 将Xcode 4拖到除应用程序之外的其他位置,例如文件。
- 将该副本重命名为Xcode以外的其他内容。 Xcode 4。
- 将重命名的副本拖动到应用程序。
- 启动Xcode 4并部署到您的iOS 7设备。
- 该应用程序正在iOS 7的兼容模式下进行调试。
这些是我使用的步骤,他们工作为了我。我确定有其他的变化会奏效。关键似乎是Xcode 4和5并排安装。也许你甚至可以卸载Xcode 5,但是我没有测试这个,因为我主要使用Xcode 5.似乎Xcode 5可以部署到iOS 7,启用后Xcode 4也可以部署到iOS 7。 / p>
So, iOS 7 was released and a lot of our users have already upgraded, even though we officially do not support iOS 7 and have asked everyone not to upgrade. Right now the app runs in compatibility mode and there are lots of issues being reported by our users. The problem is that I do not know how to debug in compatibility mode, so some of these issues are really hard to fix. I tried to Google for it, but so far I've had no luck.
How can I debug an app on iOS 7 in compatibility mode?
I figured out a way to do it. This is what I did:
- Install Xcode 5 from App Store. (Skip this step if it's already installed.)
- Make sure you can deploy to your iOS 7 device from Xcode 5.
- Download Xcode 4 from Apple.
- Open the dmg.
- Drag Xcode 4 to some other location than Applications, e.g. Documents.
- Rename that copy to something other than Xcode, e.g. Xcode 4.
- Drag the renamed copy to Applications.
- Start Xcode 4 and deploy to your iOS 7 device.
- The app is now being debugged in compatibility mode on iOS 7.
These are the steps that I used and they worked for me. I'm sure there are other variations that will work. The key seems to be to have Xcode 4 and 5 installed side by side. Maybe you can even uninstall Xcode 5 afterwards, but I didn't test this, since I primarily use Xcode 5. It seems like Xcode 5 enables deployment to iOS 7 and after it's enabled Xcode 4 is also able to deploy to iOS 7.
这篇关于如何在iOS 7的兼容模式下调试应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!