Incorrect warning from Xcode 8.3.2: File path not portable, the specified path is different in the case of a file name on disk

For some reason, my code base suddenly began to receive THOUSANDs of these warnings. But so far, all the files and paths in question are exactly correct, which corresponds to what I see on the disk using Finder. Are they a secret other case under the covers? Why will heck generate these warnings when Xcode does not really exist?

Although https://stackoverflow.com/a/166268/2126121 has the same warning, in this case, I checked that the import paths match the names of the files on the disk .

+6
source share
2 answers

My error: not portable file path gpuimagedirectionalsobeledgedetectionfilter.h the specified path is different in the case of the file name on disk

GPUimageDirectionalSobelEdgeDetectionFilter.h

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

so I deleted #import GPUimageDirectionalSobelEdgeDetectionFilter.hand added the same line with the .h subname. This solved the problem.

Used by Xcode 8.3.2

+1
source

You will receive this warning if the include / import statement has the wrong code for the header file. If you have a file called XYZ.h, you should import "XYZ.h" (in the same case).

0
source

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


All Articles