“'CDVPlugin.h' file not found” in Cordova as component (Cleaver)

前端 未结 9 1176
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 03:10

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:

\'CDVPl         


        
9条回答
  •  无人及你
    2020-12-05 03:42

    Note: Phonegap 2.9.1 (Nov 2013))

    I encountered the same problem while trying to make an open source "C" phone gap plugin work. The solution was to add the Cordovalib.xcodeproj to the target project, once done, click on your_project.xcodeproj - you will need to look in the Target Settings, under the Build Phases Tab, make sure that Cordovalib is added in Target Dependencies.

    Once done it should allow the statement: #import to work.

提交回复
热议问题