[英]IOS app store error : Missing Purpose String in Info.plist File in ionic3?
Yesterday I've submitted my app for review to the App Store Connect.昨天我已将我的应用程序提交给 App Store Connect 以供审核。 Although the app is still under review, I've received an email to inform me that I have to fix an error.Here is the screenshort of the error:尽管该应用程序仍在审核中,但我已收到一封电子邮件,通知我必须修复错误。以下是错误的屏幕截图:
I don't know how to access and modify the Info.plist.I don't even use calender,contacts,microphone,motion in my app.so why i received a email regarding above mentioned key?我不知道如何访问和修改 Info.plist。我什至不在我的应用程序中使用日历、联系人、麦克风、动作。为什么我收到了有关上述密钥的电子邮件? Any idea?任何的想法?
this is because even if you don't use those permissions but one of the third party libraries includes them in its info.plist
, then you also have to include them and write the usage description into your info.plist
file.这是因为即使您不使用这些权限,但第三方库之一将它们包含在其info.plist
,那么您也必须包含它们并将使用说明写入您的info.plist
文件。 so, to do so:-所以,这样做: -
1- you can add those keys in the config file: 1-您可以在配置文件中添加这些键:
<edit-config target="NSContactsUsageDescription" file="*-Info.plist" mode="merge"> <string>Your description here</string> </edit-config>
- 对于联系人键<edit-config target="NSContactsUsageDescription" file="*-Info.plist" mode="merge"> <string>Your description here</string> </edit-config>
-for calendar key - 日历键<edit-config target="NSCalendarsUsageDescription" file="*-Info.plist" mode="merge"> <string>Your description here</string> </edit-config>
-for microphone key - 麦克风键<edit-config target="NSMicrophoneUsageDescription" file="*-Info.plist" mode="merge"> <string>Your description here</string> </edit-config>
2- add those keys from xcode 2- 从 xcode 添加这些键
<key>NSCalendarsUsageDescription</key> <string>your description here </string>
add <key>NSCalendarsUsageDescription</key> <string>your description here </string>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.