iOS Static library joint debugging

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.