jpush / janalytics-flutter-plugin

MIT License
38 stars 28 forks source link

specified path differs in case from file name on disk [-Wnonportable-include-path]; could not build module 'janalytics' #21

Open WALL-E-WEB opened 2 years ago

WALL-E-WEB commented 2 years ago

Xcode's output: ↳

:1:10: warning: non-portable path to file '"Userss/jia.top/Documents/wangchangran/ZjAppOwner/ios/Pods/Target Support Files/JAnalytics/janalytics-prefix.pch"'; specified path differs in case from file name on disk [-Wnonportable-include-path] #include "/Users/jia.top/Documents/wangchangran/ZjAppOwner/ios/Pods/Target Support Files/janalytics/janalytics-prefix.pch" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Userss/jia.top/Documents/wangchangran/ZjAppOwner/ios/Pods/Target Support Files/JAnalytics/janalytics-prefix.pch" 1 warning generated. :1:10: warning: non-portable path to file '"Userss/jia.top/Documents/wangchangran/ZjAppOwner/ios/Pods/Target Support Files/JAnalytics/janalytics-prefix.pch"'; specified path differs in case from file name on disk [-Wnonportable-include-path] #include "/Users/jia.top/Documents/wangchangran/ZjAppOwner/ios/Pods/Target Support Files/janalytics/janalytics-prefix.pch" ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "Userss/jia.top/Documents/wangchangran/ZjAppOwner/ios/Pods/Target Support Files/JAnalytics/janalytics-prefix.pch" 1 warning generated. /Users/jia.top/Documents/wangchangran/ZjAppOwner/ios/Pods/Reachability/Reachability.m:465:63: warning: cast to smaller integer type 'unsigned int' from 'Reachability *' [-Wpointer-to-int-cast] NSStringFromClass([self class]), (unsigned int) self, [self currentReachabilityFlags]]; ^~~~~~~~~~~~~~~~~~~ 1 warning generated. While building module 'janalytics' imported from /Users/jia.top/Documents/wangchangran/ZjAppOwner/ios/Runner/GeneratedPluginRegistrant.m:20: In file included from :1: In file included from /Users/jia.top/Documents/wangchangran/ZjAppOwner/build/ios/Debug-iphonesimulator/janalytics/janalytics.framework/Headers/janalytics-umbrella.h:13: /Users/jia.top/Documents/wangchangran/ZjAppOwner/build/ios/Debug-iphonesimulator/janalytics/janalytics.framework/Headers/JanalyticsPlugin.h:3:9: error: include of non-modular header inside framework module 'janalytics.JanalyticsPlugin': '/Users/jia.top/Documents/wangchangran/ZjAppOwner/ios/Pods/Headers/Public/JAnalytics/JANALYTICSService.h' [-Werror,-Wnon-modular-include-in-framework-module] #import "JANALYTICSService.h" ^ 1 error generated. /Users/jia.top/Documents/wangchangran/ZjAppOwner/ios/Runner/GeneratedPluginRegistrant.m:20:9: fatal error: could not build module 'janalytics' #import
WALL-E-WEB commented 2 years ago

解决: xcode 中设置: buldsetting 中设置 Allow Non-modular Includes In Framework Modules 为 YES