Swift Programming and Cocoa

I am attempting to work through Swift Programming The Big Nerd Ranch Guide and got through Chapter 1. Get totally stuck on chapter 2 with import Cocoa. Does not seem possible to use this. What can I do. I am using xCode8.

What version of Xcode is the book compatible with?

XCode8 according to the book.

The current version of Xcode is 11.4.

However, if you post your code and describe the problem you are experiencing, someone might still be able to help.