No such module Cocoa

No such module Cocoa error message is displayed when the type of playground file selected is iOS instead of OS X. Make sure to select Playground under OS X if you want to use Cocoa framework and go for UIKit incase of iOS

Choose a template from your new file

Another alternate way is to change the template using the Playground Settings. Use the toggle option to show the Utilities.

Show the Utilities on Playground

Navigate to Playground Settings section, click the Platform drop down and select OS X from the list. This should also resolve the No such module error on Playground.

Playground Settings


Comments

2 responses to “No such module Cocoa”

  1. Your first sentence makes no sense in English.

    > No such module Cocoa error message is displayed when you type of the playground file selected is iOS instead of OS X.

    When you type of the playground?

    1. Thanks for letting me know. Will correct it.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.