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 \" setting item.
- 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.
Automatic Filling of header files