Phonegap 3.0 IOS plugins not found

前端 未结 14 1719
天命终不由人
天命终不由人 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:19

    I am so tired of removing and re-adding platforms for plugin issues! It seems like it is still a problem even now (2014/10) where if you add plugins to an app after adding platforms the plugin sometime does not get propagated down to the corresponding platform folders/etc. Note this seems to mainly affect iOS - not Android.

    I think my solution is just an updated method of doing same thing bjunix posted earlier - but in XCode 6 to fix this sort of thing without removing/re-adding my platform I:

    • Expand my App/Plugins folder in the left project navigator panel
    • Click on each plugin file in the list that is currently in red text (one at time)
    • Jump to the right side (Utilities) panel and click the folder icon in the Identity and Type section to re-link it to the actual file (see screenshot below).

    After doing the above my project finally builds.

    enter image description here

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2020-12-01 03:21

    I use Cordova 3.7 and I solved the problem with Kobkrit Viriyayudhakorn 's solution, BUT of course you need to use

    cordova build ios    
    

    instead of

    phonegap build ios    
    
    0 讨论(0)
  • 2020-12-01 03:21

    I my case After install Paypal Plugin I am facing issue.

    I resolved its by add "PayPalMobileCordovaPlugin.m" in the Compile Source.

    So you just need to add .m file in Compile source add it works for me.

    Check Screenshot.

    Hope its work for you

    0 讨论(0)
  • 2020-12-01 03:26

    I have found a solution that worked for me. I was using with the Compass plugin and after adding the plugin I have noticed that the config.xml (plugin docs) says it should have

        <feature name="Compass">
        <param name="ios-package" value="**CDVLocation**" />
    </feature>
    

    while the ios.json in plugin has added

            "config.xml": {
            "/*": {
                "<feature name=\"Compass\"><param name=\"ios-package\" value=\"**CDVCompass**\" /></feature>": 1,
                "<feature name=\"Device\"><param name=\"ios-package\" value=\"CDVDevice\" /></feature>": 1
            }
    

    One of then refers to CDVCompass while the other CDVLocation ... changing the xml to CDVCompass did the trick and now the app is working.

    0 讨论(0)
  • 2020-12-01 03:26

    I resolved this issue by changing the "plugin" entry to a "feature" entry in the config.xml. (using PhoneGap 3.1/iOS). This is what the fix looked like:

    <feature name="DGGeofencing">
        <param name="ios-package" value="DGGeofencing"/>
    </feature>
    
    0 讨论(0)
提交回复
热议问题