0
2

More than 1 year has passed since last update.

【iOS 16.x】シミュレータの言語を変えようとするとハングアップする

Posted at

はじめに

XCodeのSimulatorで言語設定を変えようとしたら、設定が反映されず、「言語を設定中」なままになってしまったので、直し方ないかと探したら、すぐに見つかったので、備忘録として
スクリーンショット 2023-01-07 16.07.36.png

更新履歴

2023.1.7 初回投稿

環境

  • macOS Monterey 12.5.1
  • Simulator:Version 14.1 (986.5)
  • XCode:Version 14.1

参考にしたサイト

手順

  1. XCodeを起動し、Window>Devices and Simulatorsを選択し、該当のSimulatorのUDIDをコピーする
    スクリーンショット 2023-01-07 15.42.40.png

  2. Simulatorの設定plistファイルをターミナルで開く

    open ~/Library/Developer/CoreSimulator/Devices/[SIMULATOR_UDID]/data/Library/Preferences/.GlobalPreferences.plist
    
  3. plistが開くので、「AddRow」で「AppleLocale」と「AppleLanguages」を追加する
    スクリーンショット 2023-01-07 16.05.21.png

  4. AppleLanguagesはTypeをArrayにし、Item 0のValueに「ja_JP」(日本語の場合)、AppleLocaleはTypeをStringのままで、Valueに「ja_JP」を入力

  5. plistを閉じて保存して、Simulatorを再起動させればOK

以上

0
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2