Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Incorrect warning from Xcode 8.3.2: Non-portable path to file - specified path differs in case from file name on disk

For some reason my code base suddenly started getting THOUSANDS of these warnings. But so far all the files & paths in question are exactly correct, matching what I see on disk with Finder. Are they secretly some other case under the covers? Why the heck would Xcode generate these warnings when the problem doesn't actually exist?

Although http://stackoverflow.com/questions/43067017/non-portable-path-to-file-file-h-specified-path-differs-in-case-from-file-na is about the same warning, in this case I've verified that the import paths match the filenames on disk.

like image 448
Bungles Avatar asked May 08 '17 21:05

Bungles


2 Answers

My error was this: non-portable path to file gpuimagedirectionalsobeledgedetectionfilter.h specified path differs in case from file name on disk

GPUimageDirectionalSobelEdgeDetectionFilter.h

What I did here, I located the GPUimageDirectionalSobelEdgeDetectionFilter.h file that's causing this error and copied the name as it was in the folder and pasted it into the code. Worked.

so I removed #import GPUimageDirectionalSobelEdgeDetectionFilter.h and added the same line with the pasted .h name. This solved the problem.

Used Xcode 8.3.2

like image 51
itzo Avatar answered Nov 17 '22 02:11

itzo


You will get this warning if include/import statement has the wrong case for a header file. If you have file with name XYZ.h you should import "XYZ.h" (same case).

like image 1
Parag Bafna Avatar answered Nov 17 '22 02:11

Parag Bafna