Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

multinode

macrumors regular
Original poster
Feb 4, 2011
150
0
This will be an extensive post that supersedes two others from me. Those other posts will reference this one.

https://forums.macrumors.com/threads/1174180/
https://forums.macrumors.com/threads/1175909/

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:

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.

Here's another pointer:
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.

There are a few other things I've tried, but I'm not going to mention them here because my GDB issue is not yet resolved. Any help here would be appreciated.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.