Cordova 3.1.0: Plugin not found or is not a CDVPlugin

前端 未结 6 1271
遇见更好的自我
遇见更好的自我 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

    I had this problem as well when reinstalling the plugin but managed to solve it. If, like me, removing the platform is not an option because you'd loose too much work, here's a solution:

    Step 1: Add CDVCamera.m to your Compile Sources (Under Build Phases)

    Step 2: If your problem is the same as mine, you'll get Apple Match-o-Linker errors: add the frameworks OpenAL and ImageIO to your project.

    Step 3: Rebuild and rejoice :)

提交回复
热议问题