At the moment, you do not have debug information for the application, and since most applications are pretty carefully separated, there will be no characters for lldb. Therefore, we cannot successfully set breakpoints.
When you created the application, Xcode created the dSYM file (MyApp.app.dSYM), which contains debugging information, so everything is not lost. The problem is that you are sticking to some - to Xcode - random application on the device, Xcode is not able to find out where to find its debugging information.
You can add debug information to your debugging session in lldb with the command:
(lldb) add-dsym <PathTo.dSYM>
You must do this after you attach.
lldb also uses SpotLight to search for dSYM, so if you put dSYM somewhere that SpotLight knows to search (for example, your desktop or folder under your user directory), then lldb should automatically select it.
You can find out if lldb successfully read in dSYM by doing:
(lldb) image list <AppName>
If lldb finds dSYM, it will list the path to it on a separate line after listing the path to the binary name AppName.
Jim ingham
source share