PhoneGap missing plist.key

后端 未结 6 820
一向
一向 2021-02-09 03:02

When I try and load upload my iTunes app installer to iTunes I relieve this error:

Missing Info.plist key - This app attempts to access privacy-sensitive

6条回答
  •  情深已故
    2021-02-09 03:58

    Another edit: Most plugins removed the variables for usage description, so now the way of setting them is using edit-config tag in the config.xml like this.

    
        We are using the Camera for something...
    
    

    But not all plugins have been updated yet, so better read the plugin's README.md before. On the core plugins it's in a section called iOS Quirks.

    It also needs the cli 7.0.1 or newer, set it in the config.xml like this:

    
    

    EDIT:

    My old answer no longer works if you have (or if you don't have any phonegap-version as it will use it as default)

    To set the usage descriptions use the params on the plugin

    
       
       
    
    

    Beware that if you have some plugins with the same usage descriptions and you don't fill them with param tags they might be replaced with the default empty string

    You can force to use the old builder with this tag, but it's not recommended, the new builder is better

    OLD ANSWER:

    You can write in the info.plist like this:

    
       We are using the Camera for something...
    
    

    The overwrite="true" is important because latest version of the camera plugin is already writing empty values.

    I have tested it on a sample app and it's working https://github.com/jcesarmobile/phonegap-template-hello-world/blob/454e852955e66470890cba636450abd422f50598/config.xml#L153-L155

提交回复
热议问题