#import <Masonry/Masonry.h>This form will search for the path in the header path setting of your build setting. Of course, if you do not configure the header search path, the file will not be found.
Why can #import "Masonry.h" be found? The reason is that Xcode will include all header files by default, so #import "Masonry.h" is OK.
In what circumstances is this form of #import <Masonry/Masonry.h> used? If your project has multiple targets, configure the header search path and use the form #import <Masonry/Masonry.h>, otherwise header file conflicts will be very annoying.
Supplementary (the following pictures will make it easier to understand) build settings configuration
There is a bug in Xcode: Even if the header file cannot be found when writing code, it can be built. Also, if you use a framework, you can use @import Masonry;
#import <Masonry/Masonry.h>This form will search for the path in the header path setting of your build setting. Of course, if you do not configure the header search path, the file will not be found.
Why can #import "Masonry.h" be found?
The reason is that Xcode will include all header files by default, so #import "Masonry.h" is OK.
In what circumstances is this form of #import <Masonry/Masonry.h> used?
If your project has multiple targets, configure the header search path and use the form #import <Masonry/Masonry.h>, otherwise header file conflicts will be very annoying.
Supplementary (the following pictures will make it easier to understand)
![](http://img.php.cn/upload/image/000/000/000/6a7dbdec7cb94e0814b0671bf6837cfb-0.png)
build settings configuration
Directory structure![](http://img.php.cn/upload/image/000/000/000/b8183db987f10b18ac2a71f3d39a8b0b-1.png)
Header file import
Does Masonry have a static library? You quoted it like this
There is a bug in Xcode: Even if the header file cannot be found when writing code, it can be built.
Also, if you use a framework, you can use @import Masonry;