Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS framework project breakpoints not working

Tags:

ios

xcode4

I've created an iOS framework project using the famous (and excellent) iOS Universal Framework Xcode template.

But now I've encountered an annoying problem that I can't seem to fix which is that I have an iOS application project that references the framework project and when I run that and have breakpoints set in the framework they don't get it. It seems GDB doesn't have the debug symbols for the framework.

I've made sure that debug symbols are not stripped from the framework and the type is set to "DWARF with dSYM file".

Anyone have any ideas what might be wrong and how to fix it?

My setup:

  • Xcode 4.2.1
  • iOS SDK 5.0
like image 988
mattjgalloway Avatar asked Jan 05 '12 13:01

mattjgalloway


People also ask

Why breakpoints are not working in Xcode?

You might be pushing "Run" instead of "Debug" in which case your program is not running with the help of gdb, in which case you cannot expect breakpoints to work! In Xcode 6.4, there is now only a Run button and whether it runs a debug configuration or not depends on the currently selected scheme settings.

How to use breakpoint in Xcode?

Navigate to a line in your code where you want execution to pause, then click the gutter or line number in the source editor to set a breakpoint. Xcode displays a breakpoint icon to indicate the location. Drag a breakpoint up or down to move it to another location; drag it away from the gutter to remove it.

What does a dotted breakpoint mean in Xcode?

New in Xcode 13, if a breakpoint is not resolved to any location by LLDB, Xcode will show you a dashed icon. There is a myriad of reasons why a breakpoint is not resolved but there are some common explanations. If you hover over the unresolved breakpoint icon, we have a tooltip that can help you out.


1 Answers

I ran into this issue while linking a dynamic framework to a test application in Xcode 7. I was able to avoid the error by ensuring the following in the build settings of my dynamic framework:

"Generate Debug Symbol" - 'Yes'

"Strip Debug Symbols During Copy" - 'No'

like image 153
ram kumar Avatar answered Oct 02 '22 18:10

ram kumar