Cordova 3.1.0: Plugin not found or is not a CDVPlugin

前端 未结 6 1290
遇见更好的自我
遇见更好的自我 2021-01-05 16:41

I\'m trying to build my first Cordova app and I can\'t get a plugin to work.

My app was built using the Cordova command line interface, so I\'ve added the Camera plu

6条回答
  •  猫巷女王i
    2021-01-05 16:50

    If you still get this error when all files are in place, make sure the relevant source .m files are actually target members of the project.

    To do so, select the Plugin.m file in Xcode and make sure that in the right inspector pane under Target Membership the checkbox for your project is checked.

    I had this problem after removing and adding a plugin a few times.

    Hint: the corresponding Plugin.h file lacks syntax color highlighting for types declared in the CDVPlugin classes when your plugin is not a project member (as observed in Xcode 5.0).

提交回复
热议问题