Golden Thumb Parenting Tips 金拇指育兒秘笈[005]

Install Xcode on mac and create an empty runnable app

拇指 muzhi.com
4 min readOct 5, 2019

--

Xcode is a long term toy we’ll play with. It’s the tool kids use to create stuff. In case you fail to make Xcode work on your mac, leave a comment and I’ll try my best to give you a hand, with my 10+ years of Xcode experience. Trust me, nothing is unsolvable.

Don’t worry if you use PC, the Windows computer, instead of mac at home. We can use Eclipse to do the similar things. Check out the corresponding tutorials in this series.

If your kid is too small or has no experience of using computer, you can install Xcode for her. Otherwise let just let her try and you stay next to her to help when there is a need. The point is, everything we put in this series of parenting guide is easy to follow. You don’t have to be a programmer to start using computer to play fun things together with your kid, immediately.

Make sure the memory is at least 8GB since Xcode is a big tool, yes an easy to use huge tool. Click the top left Apple icon and select About This Mac.

This is my very old MacBook Pro, with 8 GB memory.

We can also check how big your hard disk is by clicking System Report button and select Storage. In my case I have a 500 GB disk and 52 GB free space.

It’s easier to check available disk space in Finder. There is 59.12 GB available shown below. If this value is too small mac may fail to upgrade and/or install Xcode. Then you have to clean up your hard disk to make more room.

If you haven’t upgrade your mac for a long time, you might be asked to upgrade macOS first before you can install Xcode. Simply follow the instruction on screen in that case.

Open the App Store app on your mac and search for “Xcode”. Follow the instruction on screen to install it.

After the installation finishes, launch Xcode and click “Create a new Xcode project”.

click “Create a new Xcode project”

Accept the default and click Next button.

click the Next button

Input a product name in the top field. We’ll draw some colour blocks on screen so “Color Blocks” is a reasonable name.

need to change SwiftUI to Storyboard

Change User Interface from SwiftUI to Storyboard. Then click Next button to continue.

Storyboard is easier then SwiftUI for us

You can put your project folder anywhere you like. Click Create button and Xcode will create the whole project with default configurations.

click Create button and Xcode will create project for us

You’ll have something like the following.

the newly created project ready to run

Click the upper-left button with a black triangle to launch the newly created app inside the default simulator.

it takes a while to launch the simulator for the first time

Then we see a white screen.

this white screen shows the app works as expected

That’s it. Congratulations!

To stop the app from Xcode, click the upper-left button with a black square.

You can see our app “Color Blocks” with the default app icon on the screen.

[001] Golden Thumb who?
[002] Play 24 Game if kids know + − × ÷
[003] Kids love challenges. Don’t ruin their day with quick answers.
[004] Finger gymnastics on keyboard
[005] Install Xcode on mac and create an empty runnable app
[006] Install Eclipse on Windows PC and create Hello World app
[009] Ongoing stories of An
[019] Ongoing stories of Peter
[029] Ongoing stories of Nicole
[039] Ongoing stories of Willa
[059] Ongoing stories of Ethan
[049] Ongoing stories of Lucas
[069] Ongoing stories of Lambert
[079] Ongoing stories of Felix
[089] Ongoing stories of Hal
[099] Ongoing stories of Michael
[109] Ongoing stories of Marius
[119] Ongoing stories of Bowen
[129] Ongoing stories of Oliver

--

--