'Cordova/CDVViewController.h' file not found 解决方法

698 阅读1分钟

Xcode 7.1 beta以上的版本运行app时没问题,打包时会出现这个问题。

解决办法是在Header Search Paths中加入$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

1、点击项目→Build Settings→Search Paths→Header Search Paths(如果Search Paths下面没有Header Search  Paths,请注意选择类型为All,如下图)

2、在Header Search Paths下的Debug和Release中加入$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include

1

参考:forum.ionicframework.com/t/cordova-c…