Skip to content

Instantly share code, notes, and snippets.

@TonnyXu
Created July 3, 2012 09:48
Show Gist options
  • Save TonnyXu/3038789 to your computer and use it in GitHub Desktop.
Save TonnyXu/3038789 to your computer and use it in GitHub Desktop.
How to debug on a device with new iOS version with an old Xcode

Q: Is it possible to debug on a device with new iOS version with an old Xcode

The answer is: YES

How?

It's not as simple as plug your device and go. Before we start to learn how, we need to understand something.

Understand the relationship between Xcode and iOS device

  1. New iOS version always comes with a new Xcode, especially major iOS version is always come out with a new Xcode version.
  2. A specific Xcode version understand a set of different iOS version.
  3. Debugging info is included inside the iOS bundle
  4. Xcode and read from and write to a device with necessary OS version and debug info.

Some inference

  1. Old Xcode does not understand new iOS, because of lacking debug info
  2. The debugging info written to device by Xcode is very important, and general

Solution

  1. Plug a device with iOS6 beta to Xcode 4.5 DP-1, Xcode 4.5 can understand iOS6 and write necessary debug info to device.
  2. Quick Xcode 4.5
  3. Start Xcode 4.3.2
  4. Xcode 4.3.2 will read the debug info written by Xcode 4.5, and understand how to debug with new iOS version.

DONE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment