2017-09-20 7 views
1

Xcode 9.0の公式バージョンに更新しました。位置情報サービスを使用するアプリケーションを実行するとうまくいきますが、コンソールは次の警告を表示します。Xcode 9 - Info.plistの場所の使用に関する警告 - iOS 11

The app's Info.plist must contain both NSLocationAlwaysAndWhenInUseUsageDescription and NSLocationWhenInUseUsageDescription keys with string values explaining to the user how the app uses this data 

だから私は、私のInfo.plistで次のキーを追加しようとしました:

<key>NSLocationAlwaysAndWhenInUseUsageDescription</key> 
    <string>This app needs your current location</string> 

しかし、私は再びアプリを実行しようとすると、Xcodeの9が言う警告を示しています。データを正しい形式でないために読み込めませんでした。

は、だから私はに切り替え:

<key>NSLocationAlwaysUsageDescription</key> 

そして、アプリが正常に動作します。ああ、Info.plistにはすでにNSLocationWhenInUseUsageDescriptionというキーが含まれています。

コンソールにXcode 9のバグがありますか?誰も同じ警告を受けていますか?

答えて

5

ネヴァーマインド、私は単に右プライバシーブラウジングと選択して、それを修正しました - >開くよう - - のInfo.plistでの場所の使用オプション>プロパティリストビューを、ここでの情報に挿入する権利キーです。あなたがそれを必要とする場合plist:

<key>NSLocationAlwaysAndWhenInUseUsageDescription</key> 
<string>This app needs your current location</string> 

<key>NSLocationWhenInUseUsageDescription</key> 
<string>This app needs your current location</string> 
関連する問題