In iOS, when fixing bugs or developing static library content, you need to debug the code in the static library, and you need to replace the. a files and. h files in the project with the original project files of the static library.
First you need to make sure that the static library project file is not open, and Xcode does not allow the same project file to be opened in two locations at a time.
Delete the. a files and. h files for the static library in the project
Then add the static library project file, select this file can be added to the main project
After joining, the effect is as follows:
If no arrows open the collapsed project description The static library project opens elsewhere, please close and then add again.
Next, set the compile options
Join Target
When adding the required files
After joining these relationships, if the prompt header file cannot be found and you need to modify the header file search path, the directory where the. h file for the static library is added to the search path
Try to use the relative path, that is, drag the. h file into the box, and then remove the file name, so that the directory is included into the. Then select the file under the recursive recursive search directory.
Complete.
iOS Static library joint debugging