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

multinode

macrumors regular
Original poster
Feb 4, 2011
150
0
This thread is superseded by the thread entitled "Remote debugging of an iPad resident app with XCode".

I built my app into my iPad "device" and ran it in debug mode. For some reason the symbols file is not being found. I think I've not properly set some Project or Target setting properly. I got the following error:

Code:
[Session started at 2011-06-21 03:57:50 -0700.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Fri Oct 22 04:12:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys003
Loading program into debugger…
sharedlibrary apply-load-rules all
Program loaded.
unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: target remote-mobile /tmp/.XcodeGDBRemote-12306-77
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11779]
[Switching to thread 11779]
Re-enabling shared library breakpoint 2
Re-enabling shared library breakpoint 4
Re-enabling shared library breakpoint 5
Re-enabling shared library breakpoint 6
Re-enabling shared library breakpoint 7
Re-enabling shared library breakpoint 8
Re-enabling shared library breakpoint 9
Re-enabling shared library breakpoint 10
continue
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
unable to load symbol file: 
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Can't find dlopen function, so it is not possible to load shared libraries.)
(gdb)
 
Last edited by a moderator:
Well my situation is improved, but still ng. I upgraded the MacOS to 6.6.7 so that i could upgrade to XCode 3.2.6 and SDK 4.3. My iPad is running iOS 4.3.3. (The Apple children are doing terrible things these days vis-a-vis backward compatibility) ... Google, are you listening?? So now I'm wondering if the 4.3 SDK is out of sync with the iOS 4.3.3.

Please save the flames ... I've been around long enough to know exactly what I'm talking about. And btw, I'm a significant Apple stockholder.

Build and run with debug into my iPad now yields the following error messages on the console:

Code:
[Session started at 2011-06-22 16:35:32 -0700.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1516) (Fri Feb 11 06:19:43 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".Loading program into debugger…
sharedlibrary apply-load-rules all
Program loaded.
unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: unable to load symbol file: target remote-mobile /tmp/.XcodeGDBRemote-692-44
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11779]
[Switching to thread 11779]
continue
 
I think there was a step in Organizer to collect/extract/build the debug symbols.

BTW thanks for reminding me that my iPad provisioning profile is set to expire today. Once I get that back up and running, I can check.

B
 
Thanks Balam ... you've been very helpful before. I would really appreciate a hand on my issue. Also, I think you know that I attended WWDC 2011 ... lots of good help there from Rich Kubota, Larry Coopet, and Fernando Urbana ... saved my bacon in a number of ways. I knew these guys from other years.

I think there was a step in Organizer to collect/extract/build the debug symbols.

BTW thanks for reminding me that my iPad provisioning profile is set to expire today. Once I get that back up and running, I can check.

B
 
Getting better, but still have a problem. No more "unable to load symbols file". In fact, no more errors of any kind on the console. Problem: com, opt, Y doesn't stop at breakpoints.

Got this from Stack Overload:

In Organizer, enable the phone (right click -> Add device....)

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 what it wants

In Organizer, again right click -> Add Device....

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

command + Y ... (I didn't do this because I think he meant com, opt, Y after building)

Now my console says this after I build and com, opt, Y:

[Session started at 2011-06-23 02:21:29 -0700.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1516) (Fri Feb 11 06:19:43 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".sharedlibrary apply-load-rules all
Loading program into debugger…
Program loaded.
target remote-mobile /tmp/.XcodeGDBRemote-2864-151
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
Running…
[Switching to thread 11779]
[Switching to thread 11779]
continue
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.