I am new to Swift and just received the book as a present. I’ve been a programmer on mainframe platforms for 30+ years, and currently write applications in Applescript for my company. I’m interested in learning Swift as a replacement for the Applescript applications. That being said, I’m aware of, but not very knowledgeable of Xcode, the GUI programming environment and GUI based apps. So I’m very excited to start working through the book.
I hit my first snag when I tried to create my first Playground. It didn’t show the dialog where I could enter the platform, but created the Playground for IOS. Instead of the import Cocoa statement, it had import UIKit.
Ok, so it targeted for the wrong platform. I closed the playground, created a new one, where I did get the dialog, change to MacOS and now it says import Cocoa. And it can’t find the Cocoa framework, even though it exists in Macintosh HD > System > Libraries > Frameworks > Cocoa.framework > Versions > Current > Cocoa
Where do I look next? This seems like the most basic of problems, but if the standard commands don’t work, it will be tough to debug user created ones