There are three different search paths in XCode Build Settings:
- Framework Search Path
- Header Search Path
- Library Search Path
Could anyone clarify what those paths do and what they are used for?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Framework search path: where to search frameworks (
.frameworkbundles) in addition to system frameworks paths. Not used very much in iOS development, officially there is no developer iOS frameworks.In Mac development, it’s set automatically if you drag a 3rd party framework into the project. Otherwise, just set it to the container directory where you saved the framework.
In
xcconfigfiles you use this variable:Header search path: where to search for header files (
.hfiles) in addition to system paths. Usually you’ll need it if you are using a 3rd party library. Set it to the directory where you have the header files. If you use a directory to include the header (example:#import "mylibrary/component.h") set it to the parent directory.In
xcconfigfiles you use this variable:Library search path: where to search for library files in addition to system paths. Xcode will set it automatically if you drag a library (
.afiles) into the project. To set it manually, use the directory where the library is located.In
xcconfigfiles you use this variable:All three can hold a list of paths, with quotes, separated by space.