The header files of the third-party library imported to CocoaPods are automatically filled, and the third-party coapods
CocoaPods has been used for some time to manage the Objective-c class library, which is quite convenient. However, there is a small problem. When I input the import keyword in xcode, there is no function to automatically associate the code, and I need to manually complete the file name, which is hard to adapt.
The solution is found on stackoverflow:
Go to the Target> "Build Settings" tab and find the "User Header Search Paths" setting.
Set this to "$ (BUILT_PRODUCTS_DIR)" and check the "Recursive" check box.
Now the built target will search the workspace's shared build directory to locate the linkable header files.
Simply put, there are several steps:
- Select Target-> Build Settings, and find the User Header Search Paths Settings.
- Add a value "$ {SRCROOT}" and select Recursive. In this way, xcode recursively searches for files in the project directory.
The auto-completion function is ready for use immediately.