(SUPERSEDED) Problem debugging my app in the iPad ... XCode bug?

Discussion in 'iOS Programming' started by multinode, Jun 21, 2011.

Thread Status:
Not open for further replies.
  1. multinode, Jun 21, 2011
    Last edited by a moderator: Jun 26, 2011

    multinode macrumors regular

    Joined:
    Feb 4, 2011
    #1
    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) 
     
  2. multinode thread starter macrumors regular

    Joined:
    Feb 4, 2011
    #2
    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
    
     
  3. balamw Moderator

    balamw

    Staff Member

    Joined:
    Aug 16, 2005
    Location:
    New England
    #3
    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
     
  4. multinode thread starter macrumors regular

    Joined:
    Feb 4, 2011
    #4
    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.

     
  5. multinode thread starter macrumors regular

    Joined:
    Feb 4, 2011
    #5
    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:

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

     
Thread Status:
Not open for further replies.

Share This Page