Debugging dynamic library with Xcode
It was a normal Makefile project, which I converted to XCode BSD Dynamic Library. Now it builds succesfully (I still have to copy the resulting .dylib to /usr/lib manually, any ideas how to automate this?)
However, I cannot figure out how to debug this library. Currently I'm doing following:
- Start the client program from command line, and figure out its process id
- Go to Xcode, and click Attach to process ID
- Then I I try to set breakpoints to the dynamic library code
However, the breakpoints don't activate.
Any ideas how to proceed?