TT55EE
@TT55EE
Кшендерма ерендык

Ошибка — Missing Info.plist key — Как в Phonegap добавить записи в Info.plist?

Из Эпла сообщили что Missing Info.plist key
Missing Info.plist key - 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.


Работающее решение:

//добавить в config.xml

<plugin name="cordova-plugin-camera" spec="~2.3.0">
   <param name="CAMERA_USAGE_DESCRIPTION" value="The app would like to access the camera when you attach photos to content." />
   <param name="PHOTOLIBRARY_USAGE_DESCRIPTION" value="The app would like to access the photo library when you attach images to content." />
</plugin>


еще есть такой вариант но я его не пробовал:
<config-file platform="ios" parent="NSPhotoLibraryUsageDescription" mode="replace">
   <string>Allows access to photo library</string>
</config-file>

<config-file platform="ios" parent="NSBluetoothPeripheralUsageDescription" mode="replace">
  <string>Allows access to bluetooth devices</string>
</config-file>

<config-file platform="ios" parent="NSCameraUsageDescription" mode="replace">
   <string>Allows usage of the camera</string>
</config-file>
  • Вопрос задан
  • 242 просмотра
Пригласить эксперта
Ответы на вопрос 1
briahas
@briahas
ObjC, Swift, Python
удалено после изменения вопроса
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы