IOS 10 Privacy Key Setting in info.plist

Aggiungere privacy key in info.plist per non avere problemi di crash e di pubblicazione

ios-10-privacy-key

In IOS 10 Apple sta aumentando il controllo della privacy sui propri dispositivi, quindi ogni IOS App Developer deve dichiarare nel file info.plist l’accesso di tutti i dati privati di cui ha bisogno la propria app per funzionare.

Se non si dichiara l’accesso ai dati di privacy iTunes non ci permette di caricare la nostra app neanche in beta testing, dando l’errore:

This app attempts to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSCalendarsUsageDescription key with a string value explaining to the user how the app uses this data.

This app attempts to access privacy-sensitive data without a usage description. The app’s Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaining to the user how the app uses this data.

In questo caso ci viene chiesta la privacy per la fotocamera e il calendario ma per essere sicuri le privacy key da inserire nel file info.plist sono:
calendario, contatti, foto, bluetooth, microfono, fotocamera, geolocalizzazione, heath, homekit, riconoscimento vocale, kit di Siri, TV provider e CallKit.

Come risolvere errore

vai su info.plist e aggiungi le privacy key che utilizza la tua app.

schermata-2016-09-30-alle-18-28-48

Calendar :
Key : Privacy – Calendars Usage Description
Value : $(PRODUCT_NAME) calendar events

Reminder :
Key : Privacy – Reminders Usage Description
Value : $(PRODUCT_NAME) reminder use

Contact :
Key : Privacy – Contacts Usage Description
Value : $(PRODUCT_NAME) contact use

Photo :
Key : Privacy – Photo Library Usage Description
Value : $(PRODUCT_NAME) photo use

Bluetooth Sharing :
Key : Privacy – Bluetooth Peripheral Usage Description
Value : $(PRODUCT_NAME) Bluetooth Peripheral use

Microphone :
Key : Privacy – Microphone Usage Description
Value : $(PRODUCT_NAME) microphone use

Camera :
Key : Privacy – Camera Usage Description
Value : $(PRODUCT_NAME) camera use

Location :
Key : Privacy – Location Always Usage Description
Value : $(PRODUCT_NAME) location use

Key : Privacy – Location When In Use Usage Description
Value : $(PRODUCT_NAME) location use

Heath :
Key : Privacy – Health Share Usage Description
Value : $(PRODUCT_NAME) heath share use

Key : Privacy – Health Update Usage Description
Value : $(PRODUCT_NAME) heath update use

HomeKit :
Key : Privacy – HomeKit Usage Description
Value : $(PRODUCT_NAME) home kit use

Media Library :
Key : Privacy – Media Library Usage Description
Value : $(PRODUCT_NAME) media library use

Motion :
Key : Privacy – Motion Usage Description
Value : $(PRODUCT_NAME) motion use

Speech Recognition :
Key : Privacy – Speech Recognition Usage Description
Value : $(PRODUCT_NAME) speech use

SiriKit :
Key : Privacy – Siri Usage Description
Value : $(PRODUCT_NAME) siri use

TV Provider :
Key : Privacy – TV Provider Usage Description
Value : $(PRODUCT_NAME) tvProvider use

Scritto da Magoo

Magoo

Web Developer & Mobile Developer, Game Lover insomma un Nerd.
Co-founder Iwebdesigner.it, Nerdzhouse SRL.
Prendo a schiaffi la tastiera fino a quando non succede qualcosa di buono.

COMMENTA

Loading Disqus Comments ...
Loading Facebook Comments ...

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *