Unityでロケーション情報が取得できずに全然違う方面のアプローチをしてハマってしまいました。
This app has attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSLocationWhenInUseUsageDescription key with a string value explaining to the user how the app uses this data
という表示がなされたのでグーグル先生にQiita先生を紹介してもらって解決しました。
原因は最新(2016.12.10現在)のXcode8、iOS10で変更になった
Apple の公式ドキュメント「Information Property List Key Reference」の「Cocoa Keys」セクションの説明によると、以下の表の中のいずれかの操作を行う場合、特定のキーと使用目的を Info.plist ファイルに記述する必要があるようです。
という点でした。
対策
- info.plist に
Privacy - Location When In Use Usage Description
key を追加。
実際に追記された内容
Xcodeで入力したものをテキストエディタで開くと以下の内容が
<key>NSLocationWhenInUseUsageDescription</key> <string>Privacy - Location When In Use Usage Description</string>