Add entry to iOS .plist file via Cordova config.xml

后端 未结 15 1522
日久生厌
日久生厌 2020-11-28 21:41

I am new to the Cordova CLI.

I need to perform the following steps programmatically via Cordova.

  1. In the project .plist add a new row
  2. Enter th
15条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 22:19

    I don't think you can do this via straight config.xml modification. At least, I didn't see any mention of this in the docs: http://cordova.apache.org/docs/en/3.3.0/config_ref_index.md.html

    I think you have to create a plugin, because they can insert plist entries: http://docs.phonegap.com/en/3.3.0/plugin_ref_spec.md.html#Plugin%20Specification

    See the 'config-file element' section. Here's a guess as to what the relevant section of the plugin.xml will look like:

    
    
    
        
            GDLibraryMode
            GDEnterpriseSimulation
        
    
    
    
    

    Then you can install the plugin: cordova plugin add

提交回复
热议问题