ViewController in Xcode

Asked 2 years ago, Updated 2 years ago, 35 views

Thank you for your help.
I would like to create a project by selecting Single View Application in Xcode.
viewDidLoad() in View.controller.swift For example, print("thank you") means
when you run. The output window should open with thank you but nothing.
I understand you are busy, but I appreciate your guidance.
Xcode 8.2.1 macOS Sierra 10.12.3.

xcode

2022-09-29 21:50

1 Answers

I don't really understand your question, but since you explicitly use the xcode tag, I understand that it is a question about how to use the Xcode itself.

If you run the app from Xcode, the output of print in the app will be output to the debug console in the debug area.When you say "Output Window Open", you can read as if you were expecting something new to open, but only a small debug area (debug area) appears at the bottom of the screen (in standard condition) and is printed to the debug console in the right half.

Debug Console

In rare cases, even the debug area may not appear after you close the debug area yourself, but in that case, try opening the debug area directly by using the button in the upper right corner of the Xcode window.

Show/Hide Switch

If you have something else you would like to ask, edit your question to describe the situation in more detail and more accurately (*1).

*1 For example, if a project was created using Single View Application, the filename should be View.controller.swift, not ViewController.swiftAs programming often results completely differently with just one letter difference (including case differences), you should try to be as accurate as possible.


2022-09-29 21:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.