ccgus / fmdb

A Cocoa / Objective-C wrapper around SQLite
Other
13.85k stars 2.77k forks source link

Non-portable path to file '<fmdb/FMDB.h>'; specified path differs in case from file name on disk #630

Open Whirlwind opened 6 years ago

Whirlwind commented 6 years ago

I have a pod :

#import <FMDB/FMDB.h>

I got a warning:

In file included from 
DDJSONModel+SQLite.m:9:
DDJSONModel+SQLite.h:10:9: warning: non-portable path to file '<fmdb/FMDB.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import <FMDB/FMDB.h>
        ^~~~~~~~~~~~~
        <fmdb/FMDB.h>

I check every settings, I found the pod path Pods/Headers/Public/FMDB/FMDB.h -> Pods/FMDB/src/fmdb/FMDB.h

I don't know why the pod search the Pods/FMDB/src/fmdb/FMDB.h, not Pods/Headers/Public/FMDB/FMDB.h. I change the folder name Pods/FMDB/src/fmdb/FMDB.h -> Pods/FMDB/src/FMDB/FMDB.h, the fmdb to FMDB, then the warning gone.

ccgus commented 6 years ago

Well, your pod needs to be updated to the lowercase version.

Whirlwind commented 6 years ago

I can't. There is not a lowercase version in my pod repos.

[!] Unable to find a specification for `fmdb` depended upon by `Podfile`

I think it may be Insensitive in mac osx.

Whirlwind commented 6 years ago

Could you rename the folder from fmdb to FMDB or other?

bamx23 commented 6 years ago

Looks like the problem can be solved with spec.header_dir = 'FMDB' in podspec. https://guides.cocoapods.org/syntax/podspec.html#header_dir

yam-liu commented 5 years ago

Same issue here. I think <FMDB/FMDB.h> is <PodName/FileName.h>, <fmdb/FMDB.h> is <FolderName/FileName.h>. But the case is different so Xcode tries to warn this. It is maybe safe to ignore this warning, but should I?