更新时间:2023-11-17 19:09:46
对于xcode7 add $(OBJROOT)/ UninstalledProducts / $ (PLATFORM_NAME)/ include
到标题搜索路径(您可能需要将启用位码设置为否 - 对我来说是必要的,但可能与xc7的不同问题有关)
I added Cordova as a component to my iOS project. Adding a custom plugin leads to the error, despite that the plugin works in a Cordova-only project:
'CDVPlugin.h' file not found
The problematic part is as follows:
#import <Foundation/Foundation.h>
#ifdef CORDOVA_FRAMEWORK
#import <Cordova/CDVPlugin.h>
#else
#import "CDVPlugin.h"
#endif
What am I missing?
For xcode7 add "$(OBJROOT)/UninstalledProducts/$(PLATFORM_NAME)/include"
to your Header Search Paths (and you may need to set Enable Bitcode to No - was necessary for me, but may be related to different problem with xc7)