Open1

iOS開発でNSLocationWhenInUseUsageDescription

girafferzgirafferz

Mapに現在地を使おうとして
“NSLocationWhenInUseUsageDescription” key with a string value explaining to the user how the app uses this data
権限リクエストの文言がないとエラーになる

プロジェクトに Info.plist が存在しないことを知って驚いた

対応
https://forums.developer.apple.com/forums/thread/728473

Info.plist contained no UIScene configuration dictionary
https://qiita.com/yoshikoba/items/6b90f68c41256843ae18

infoというファイルが生成される
そこに
NSLocationWhenInUseUsageDescriptionをkeyで追加
自動で、Privacy - Location .. に変換
追加する