报错信息如下:
'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
如有问题请继续沟通。。。