Phonegap 3.0 IOS plugins not found

前端 未结 14 1718
天命终不由人
天命终不由人 2020-12-01 03:14

I´m getting this error in XCode:

2013-08-23 14:36:18.284 Tell The DJ[14955:c07] ERROR: Plugin \'Device\' not found, or is not a CDVPlugin. Check your plugin          


        
14条回答
  •  有刺的猬
    2020-12-01 03:21

    Deleting the platforms/ios folder is not a solution for me as all manual customizations to the xcode project will be lost.

    But there is a simple way around:

    In XCode, goto Build Phases -> open the Compiled Sources dropdown. Click + and add the missing plugin .m file that should be in your Plugins directory (but is missing from the compiled sources).

    This solution came from another stack overflow answer, here: https://stackoverflow.com/a/21148428/80254

    Another alternative:

    In xcode make sure the source files of the plugin has the 'target membership' settings set: In File-Explorer go to Plugins > CDVDevice.m and check if there is a tick next to your app name at "target membership" on the right side of xcode window. This actually does the same as the other solution but is a bit more convenient.

    From here: https://stackoverflow.com/a/20576744/80254

提交回复
热议问题