Simulator within Xcode shows content view but doesn't run

Hi … newbie here. I’m taking the “intro” course. I’m doing the Lesson 10 Quiz. When I select a simulator at the top, I select iPhone 12. It then brings up a separate app titled “Simulator”. The content view also shows in the canvas area next to the editor in Xcode. Xcode correctly shows the changes made to the content view in the adjacent simulator and the external Simulator app. However, the program will only run and print to the console from the external app. It will not run and print to the console from the simulator within the Xcode program adjacent to the editor. Should it be able to print to the console from the “canvas” simulator? or am I doing something wrong.
Thanks,
Gary

@gbrinton

Hi Gary,

Unfortunately when you run the code in Preview mode the console does not respond to print statements. The console is only active when you run the code on a simulator or on a real device.