• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Debugging my iPad resident app from XCode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Debugging my iPad resident app from XCode


  • Subject: Debugging my iPad resident app from XCode
  • From: "B. Mitchell Loebel" <email@hidden>
  • Date: Mon, 27 Jun 2011 01:31:07 -0700

Title: Debugging my iPad resident app from XCode
Hello list ...

This is a post that I put up on Mac Rumors ... no answer yet:

The app that I wrote runs flawlessly in the XCode Simulator, but when I attempted to run it in Debug mode in the iPad device itself I ran into 3 problems. Two of those problems are now resolved ... the third issue is still open.

Originally I was using a Mac Book Pro (MBP) with MacOS 10.6.4, SDK for iOS 4.2, and a recent upgrade to iOS 4.3.3 in the iPad. After going through all of Apple's provisioning gobbledegook the first error I encountered was something to the effect of "can't load symbol table" many times on the Console. I suppose that every symbol in the iPad that was needed by the MBP's GDB but missing evoked that "can't load symbol table" error.

I correctly surmised that the versions between the systems were not synchronized. That said, I upgraded to 10.6.7 and SDK 4.3 on the MBP. And I took XCode up to 3.2.6 on the MBP. That reduced the number of missing symbol error messages, but a few still remained.

Somebody on StackOverflow posted this:

Quote:

In Organizer, enable the iPad (right click -> Add device to provisioning portal)

Close XCode

Delete the $project/build/*

Delete /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1

Restart XCode

Go to organizer and agree to let it download "collect" what it wants (symbols) from the device

In Organizer, again right click -> Add device to provisioning portal

Updated Code Signature ... (I didn't do this because I didn't know how)

Voila. This process eliminated all the unfound symbol messages ... the MBP and the iPad now were synchronized vis-a-vis symbols. Now I have a directory named 4.3.3 (8J3) in / ... /DeviceSupport/ which contains a directory named Symbols in the MBP ... it wasn't there before.

Next ...
I got an error to the effect of "unable to connect to Unix service /tmp/.XcodeGDBRemote-xxxx-xxx". I then discovered that the permissions for /tmp/.XcodeGDBRemote-xxxx-xxx and /tmp were set to r/w for System and r for Wheel and Everyone. I reset the latter two permissions to r/w and that eliminated the "unable to connect ..." error message. Btw, /tmp is a hidden directory ... there are many ways posted on Google to make hidden files and directories visible in Finder.

--->> Finally, I'm down to an unresolved problem with GDB ... XCode is not stopping at breakpoints that I set in source. Clearly, the MBP portion of GDB must communicate with the GDB stub in the iPad device vis-a-vis breakpoints and something is wrong there. I can fudge the issue manually (not going to discuss that here) to get some breakpoints to operate.

I did do this:
In XCode Project -> Edit Active Executable xxxx under the General tab set "Use debug suffix when loading frameworks" to get the debug versions of the frameworks.

--
-----------------

B. Mitchell Loebel             408 425-9920
                            Skype name: multinode
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Xcode 3.2.6 Instruments (Leaks) Problem after 10.6.8 Update?
  • Next by Date: Re: Suppressing pointer sign warnings
  • Previous by thread: Xcode 3.2.6 Instruments (Leaks) Problem after 10.6.8 Update?
  • Next by thread: Integrate aurioTouch
  • Index(es):
    • Date
    • Thread