What is the relationship between Xcode, Swift and Cocoa?
Xcode is an IDE for developing Swift or Objective-C applications, which can use the Cocoa API (which is an OS API and a standard library for Mac OS X; Cocoa Touch is the same for the mobile devices).