Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4.3 and debugging on iOS 3.x devices

I just updated Xcode to version 4.3 via the Mac App Store last week, and discovered that I can no longer debug on iOS 3.x devices. I have the iPhone 3G running iOS 3.1.3 and a 1st Gen iPad running iOS 3.2.

On both devices it appears that Xcode 4.3 installs the app and attempts to launch the app. The app displays the splash screen but never completes booting. There are no error messages or messages of any kind in the debugger output window. My only clue is when I press the pause button I can see that the device/Xcode is stuck in the following function: addimagesToAllImages which appears to be related to Apple's DYLD.

Debugging works fine on iOS 5 devices and worked on the previous Xcode 4.2 installation. I've rebooted my Mac, iOS 3.x devices with no change in behavior including clearing out all cache(s).

Anyone have any ideas as to what's going on? Thanks for the help.

like image 701
Wesley Filleman Avatar asked Feb 19 '12 22:02

Wesley Filleman


2 Answers

Ok, I figured it out with Junior B's hint about the debugger. I went to "Manage Schemes" and selected the Scheme I'm working on and clicked "Edit". Under the "Run" section I changed the Debugger from LLVM to GDB. Now debugging on iOS 3.x and 5.x devices work fine. Also, I left the compiler to xcode's preferred setting of LLVM 3.1.

Hopefully this helps someone else that accepts xcode's upgrade adviser recommended settings and their iOS 3.x debugging breaks.

like image 181
Wesley Filleman Avatar answered Nov 01 '22 22:11

Wesley Filleman


Have you installed the “iOS 3.0 - 3.2.2 Device Debugging Support” component?

From the menu bar, choose Xcode > Preferences…, then in the Preferences window choose Downloads > Components. Find the line for iOS 3.0 support and click the Install button.

like image 23
rob mayoff Avatar answered Nov 01 '22 21:11

rob mayoff