I have a project that was previously running in XCode 7, under Swift 2.2. However, I started migrating it to Xcode 8 and Swift 2.3 (Swift 3 will come later). This is my first time migrating a project, so I'm fairly new to a lot of concepts.
I keep getting the following error: 'JBBarChartView.h'file not found.
This is how my project looks like (blurred out the unimportant parts for privacy reasons)
The blue arrow points to the Bridging Header. This is what my bridging header looks like:
and this here is my actual folder structure.
The important Header Files, such as the JBBarChartView.h, are inside the Vendor Folder. For some odd reason, Xcode simply cannot find the files, and thus fails to import the Bridging Header.
So far what I have tried is:
- For the related Target, I have set Swift Compiler - General > Objective-C Bridging Header to the correct location.
- I have set the Header Search Paths for the Target to ../../${SRCROOT} and recursive.
- I have also selected YES on Always search user paths
- And my User Header Search Paths are also: ../../${SRCROOT} and recursive. (manually, in my build settings)
- I also have an xconfig file which looks like this: HEADER_SEARCH_PATHS = "../$(SRCROOT)/**" (among other, but they are all separated by a blank space.)
- I have too cleaned the DerivedData Folder, and restarted Xcode several times.
No matter what I try, for some odd reason Xcode can't find those headers. Does anybody have an idea what I could try?