简体   繁体   English

iOS设置(隐私 - >位置服务 - >选择我的应用 - >更改允许访问)崩溃

[英]iOS settings (Privacy -> Location services -> select my app -> change allow access) crashed

I am really curious about this issue. 我对这个问题很好奇。 i have added following things in plist 我在plist中添加了以下内容

1.NSLocationAlwaysUsageDescription -> YES 1.NSLocationAlwaysUsageDescription - >是

2.NSLocationWhenInUseUsageDescription -> YES 2.NSLocationWhenInUseUsageDescription - > YES

but when I try to change "allow location access" , iOS settings App crashed in iPhone 5(iOS8)..it works on iPhone 4 and 4s (iOS7).can anyone help me to solve this issue ? 但是当我尝试更改“允许位置访问”时,iOS设置应用程序在iPhone 5(iOS8)中崩溃..它可以在iPhone 4和4s(iOS7)上运行。可以有人帮我解决这个问题吗?

Finally I found answer. 最后我找到了答案。 we need to give String only for NSLocationAlwaysUsageDescription and NSLocationWhenInUseUsageDescription.. I gave Boolean value for these services..that was cause of issue.. 我们需要为NSLocationAlwaysUsageDescription和NSLocationWhenInUseUsageDescription提供String ..我为这些服务提供了布尔值..这是问题的原因..

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 iOS 11+ 中以编程方式打开设置 > 隐私 > 定位服务? - how to programmatically open Settings > Privacy > Location Services in iOS 11+? 我的应用程序未显示在位置服务下(设置->隐私) - My application is not showing under location services (Settings->Privacy) 如何在iOS中更改消息“允许“应用”访问您的位置” - How to change the message 'Allow “App” to access your location ' in ios iOS10应用程序已崩溃,因为它尝试访问对隐私敏感的数据 - iOS10 app has crashed because it attempted to access privacy-sensitive data iOS - 应用程序崩溃,因为它试图在没有使用说明的情况下访问隐私敏感数据 - iOS - App crashed because it attempted to access privacy - sensitive data without a usage description iOS 10 应用程序崩溃,因为它试图访问隐私敏感数据 - iOS 10 App has crashed because it attempted to access privacy-sensitive data 有没有办法知道我的iOS应用程序被隐私设置更改杀死? - Is there a way to know my iOS app was killed by a privacy setting change? iOS:打开我的应用特定位置设置 - iOS : Open my App Specific Location Settings 应用程序被 iOS 强制重启并使用新的隐私设置 - App is forced to restart by iOS with new privacy settings iOS 5之前的位置服务和设置 - Location Services and Settings prior to iOS 5
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM