Cannot find the .h file.

I downloaded the Andy Potion "PFLetsMove" framework here and added the Xcode project to my application project. Then I dragged the framework from it to the Link Binary with Libraries and Copy Files storyline.

Now, if I compile the application with a call PFMoveToApplicationsFolderIfNecessary(), it works fine, so the structure definitely exists. But if I put a string #import "PFLetsMove/PFMoveApplication.h"in the application delegate, I get the following error: 'PFLetsMove/PFMoveApplication.h' file not found.

I checked the compiled PFLetsMove.framework in the build folder and there is PFMoveApplication.h there. I did the same with the AquaticPrime framework (imported the header) and it works great. Where am I mistaken here, or is there a potential problem with how the structure is created?

+3
source share
1 answer

If you use the framework, you put the file name in angle brackets (i.e. <FrameworkName/FileName.h>), if it is a local file, you use quotation marks (i.e. "FileName.h"). Please note that even if the source file is in a group or subfolder, it is not mentioned as such.

+5
source

Source: https://habr.com/ru/post/1766825/


All Articles