Xcode 13.4.1 "Toggle Appearance" not working

For some time, whenever I use ⌘⇧A (command + shift + A) to toggle appearance from light to dark mode, nothing happens.

The same hen pressing the Features > Toggle Appearance in the menu item.

I saw a mention about this issue in https://developer.apple.com/forums/thread/707994?answerId=716995022#716995022

For that, I assume it may not be a systematic issue, but a problem with some cached file or something in the simulator and/or Xcode project

Answered by fespinozacast in 719448022

In the post I originally linked someone posted the solution for this problem

https://developer.apple.com/forums/thread/707994?answerId=717730022#717730022

  1. deleted /Library/Developer/PrivateFrameworks
  2. installed Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg

on my system at least, XcodeSystemResources.pkg creates the /Library/Developer/PrivateFrameworks folder. anyway that fixed "Toggle Appearance" in the Simulator for me! thanks for the tip!

Same issue.

Moreover, xcrun simctl ui booted appearance light does not work and xcrun simctl ui booted appearance returns unknown

I didn't mentioned in the post, but I am talking about the simulator.

I also have the same behavior described by @DoxxerApple 👇

saame for me both on Monterrey (Xcode 13) AND Ventura (Xcode 14 beta)

Accepted Answer

In the post I originally linked someone posted the solution for this problem

https://developer.apple.com/forums/thread/707994?answerId=717730022#717730022

  1. deleted /Library/Developer/PrivateFrameworks
  2. installed Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg

on my system at least, XcodeSystemResources.pkg creates the /Library/Developer/PrivateFrameworks folder. anyway that fixed "Toggle Appearance" in the Simulator for me! thanks for the tip!

Xcode 13.4.1 "Toggle Appearance" not working
 
 
Q