Build A Game With Swift 4 (Part 3)

Aw yiss! It’s app makin’ time. Fire up your Xcode, get your Swift hat on and get hacking with this game called “Add 1”.

In these videos you’ll be learning how to create a game for iOS with Swift. We’ll dive in Xcode, variables, working with input and output, optionals, using Interface Builder, all you need to get started with iPhone app coding.

The game we’ll create is called “Add 1”, and as far as I know it’s an invention of Daniel Kahneman. He’s the author of “Thinking Fast and Slow”, and used the game as an assignment in his research of cognitive strain.

The game is perfect for creating a small and simple app with enough functionality to make it a worthwhile learning experience. By the end of this mini course, you’ll know how to make a simple app and you’ll be able to challenge your friends to see who can make the most add-1’s in 60 seconds.

There’s not much to setup before you can follow this mini course, but you at least need:

1. A Mac
2. With Xcode 8 installed
3. An hour or so of time in total
4. No programming experience required!

Ask me anything at

This is the #AskReinder show, in which I answer any questions you have about app marketing and development.


  • Dirk-Jan Bakker

    Why do I get this error and how do I get rid of it? Command MergeSwiftModule failed with a nonzero exit code. I use Xcode 10.1 on macOS High Sierra 10.13.6. The error occurred on the part when I had to made the Bridging Header (Add1-Bridging-Header.h). Don't know for sure if this has to do with it.

  • Merkzay

    Man this sucks, I been working on creating this with you for 4 hours straight and when I was implementing the Cocoa Pod in the project it said it could not find it, than after I changed the project name because I had it named something else, then out of nowhere when I opened Xcode everything disappeared, now I have to restart :((


    i get this error
    Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MainViewController" nib but the view outlet was not set.'

  • Rasmus Englund

    Thanks Reinder for an awesome introduction to Xcode from a 15 year-old!
    Great way to get started and learn some of the fundamentals of creating your own app.
    Much appreciated!

  • VaderRoyale

    Ok now I have a new problem, Its giving me an error when I did this command "inputField?.addTarget(self,action: #selector(textFieldDidChange(textField:)), for:UIControlEvents.editingChanged)"

  • Lalitha Gollapudi

    i followed all the steps very helpful…. i did try to make your app by following your instructions.. i was successfull… thankyou for sharing this information

Leave a Reply

Your email address will not be published. Required fields are marked *