はじめに
XCodeのSimulatorで言語設定を変えようとしたら、設定が反映されず、「言語を設定中」なままになってしまったので、直し方ないかと探したら、すぐに見つかったので、備忘録として
更新履歴
2023.1.7 初回投稿
環境
- macOS Monterey 12.5.1
- Simulator:Version 14.1 (986.5)
- XCode:Version 14.1
参考にしたサイト
手順
-
XCodeを起動し、Window>Devices and Simulatorsを選択し、該当のSimulatorのUDIDをコピーする
-
Simulatorの設定plistファイルをターミナルで開く
open ~/Library/Developer/CoreSimulator/Devices/[SIMULATOR_UDID]/data/Library/Preferences/.GlobalPreferences.plist
-
AppleLanguagesはTypeをArrayにし、Item 0のValueに「ja_JP」(日本語の場合)、AppleLocaleはTypeをStringのままで、Valueに「ja_JP」を入力
-
plistを閉じて保存して、Simulatorを再起動させればOK
以上