GPUImage.h file not found

I am currently implementing GPUimage in my iOS app and I am getting the following error:

'GPUImage.h' file not found

      

I found several potential fixes, however none of them worked for me. I'm sure it has something to do with my "title search paths", which currently looks like this:

../../../framework (set to recursive)

      

I've tried multiple heading search paths with no luck. GPUImage is in my frameworks folder which I believe is the norm. I have double checked and imported everything correctly.

Any corrections or ideas are greatly appreciated.

+3


source to share


1 answer


Ok, I remember how to do it now. Brad's first instructions for adding a framework to your project are kind of fictitious. That is, if it is a "framework", you should be able to add the framework to your project without adding a source.

When you write a line #import <GPUImage/GPUImage.h>

, it searches within the GPUImage.h file and does not find it. It doesn't find it because the target membership of the GPUImage.h file is not set to public.

A simple fix, which is not easy, is to assign the target GPUImage.h membership to the public and rebuild the structure. The problem is that all included h files in GPUImage.h must also be publicly installed, but not all of them. And there are over 160 hours of files in your pocket. Your best bet is to follow the instructions below and let xcode tell you which h files it still can't find.



To set target xcode membership,

  • open your GPUImage project in xcode
  • Open the GPUImage.h file
  • In the utility window on the right, select the File Inspector tab, which looks like a page with a small fold in the upper right corner.
  • For more information, see Target GPUImageFramework Membership Check and change "project" to "public" from the dropdown menu.
  • Rebuild the GPUImageFramework for Generic iOS Device.
  • In the Product group, right-click on GPUImageFramework and select Open in Finder.
  • Drag the new Framework structure into the project and uncheck "Copy items as needed" is unchecked. This way, if you need to rebuild the project after the other h files become public, you don't have to.
0


source







All Articles