Using cocoaPods, importing third-party library header files has no automatic association

When using cocoaPods, a third-party library is used in the project. When importing the header file, after entering #import, the third-party library header file (XXXX.h) will not be associated with it. We need to manually input it, which is very anxious. The following steps can effectively solve this problem. .

1. Select target (that is, your project target on the left) - BuildSettings - User Header Search Paths under search Paths

2. Double-click the blank space behind:

3. And click the "+" sign to add an item: and enter: "$(PODS_ROOT)" (without quotation marks), select: recursive (will recursively search for files in the corresponding directory)

The operation is completed, temporarily record it, and take pictures in your spare time

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324727659&siteId=291194637