apache的Cordova,编译运行能通过,打包报file not find错误

来源:互联网 发布:h5场景源码 编辑:程序博客网 时间:2024/05/29 18:03

报错信息如下:

'Cordova/CDVFile.h' file not found


解决办法:

设置header seach path



一般情况下设置下面这个就可以了:

$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include


如果不行,在添加一下几个路径:

HEADER_SEARCH_PATHS=" 

$(TARGET_BUILD_DIR)/usr/local/lib/include 

$(OBJROOT)/UninstalledProducts/include 

$(OBJROOT)/UninstalledProducts/\$(PLATFORM_NAME)/include 

$(BUILT_PRODUCTS_DIR)

"

还有一个很厉害的脚本:歪果仁写的很强大。可以试用,地址为:

https://github.com/apache/cordova-ios/blob/master/bin/templates/scripts/cordova/build.xcconfig


如有问题请继续沟通。。。


1 0
原创粉丝点击