How to debug source code from main project?

I have a subproject in my main project using xcode 4.5.2. sub-project creates a library. subproject is included in the main project. I also defined the title of the project, where to look for the title of the subproject (the title of the framework). The debug target of the subproject is set for debugging. but still I cannot enter a breakpoint in a subproject. I found something, but since 2006, when xcode was different. and i can't figure it out. http://www.idevgames.com/forums/thread-3985.html

Does anyone know how to configure xcode to use it to debug a .framwork library?

early!

+4
source share
2 answers

There is actually a way to debug an iOS project that uses .framework if you have the source code. This worked for me in xcode 4.6.

You can do the following:

  • Paste breakpoints in .framework source code.
  • Compile a project that uses the framework and runs it on your device (iPhone, iPad, etc.). This step is to make sure that the most updated project is installed on your device.
  • Stop the process running on your device and go to xcode -> product -> Attach to process -> YourApp. In xcode 6, "Attach to Process" is located in the Debug menu.

If you do not see your application name in the applications listed there, go to "Process Identifier (PID) or Name ..." and enter the name of the application. Now, if you run the application on your device, it should break at locked breakpoints.

+9
source

Unable to debug .framework. I modified my subproject to create a static lib with public and private headers.

0
source

All Articles