XCode4.6: Three steps to debug the static library in the application

Step 1: In the application project, set the library path in the xcode Preferences...

XCode4.6: Three steps to debug the static library in the application_第1张图片

Step 2: Add the static library project file into the application by "Add Files to..." by right clicking on the project panel.


XCode4.6: Three steps to debug the static library in the application_第2张图片

Step 3: Select the added library project in the project panel, and bind the new added the library project with the library source path created in Step1.

XCode4.6: Three steps to debug the static library in the application_第3张图片


Then you can set the breakpoints in your static library source file, run and debug your application, the code would be stop at the break point you set when executing to it.


你可能感兴趣的:(XCode4.6: Three steps to debug the static library in the application)