• Skip to main content
  • Skip to primary sidebar

Ravi Shankar

Tweaking Apps

  • Swift
  • Tech Tips
You are here: Home / Develop / No such module Cocoa

No such module Cocoa

July 1, 2014 By Ravi Shankar 2 Comments

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

Filed Under: Develop, Programming, Xcode Tagged With: error, Playground, Xcode

Reader Interactions

Comments

  1. Alex says

    May 13, 2019 at 6:33 pm

    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?

    Reply
    • Ravi Shankar says

      May 14, 2019 at 2:41 am

      Thanks for letting me know. Will correct it.

      Reply

Leave a Reply Cancel 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.

Primary Sidebar

TwitterLinkedin

Recent Posts

  • How to block keywords in Jio broadband
  • How to disable opening an app automatically at login in Mac
  • How to set preferred Wifi network on Mac
  • Attribute Unavailable: Estimated section warning before iOS 11.0
  • How to recover Firefox password from Time Machine backup

Pages

  • About
  • Privacy Policy
  • Terms and Conditions

Copyright 2022 © rshankar.com

Terms and Conditions - Privacy Policy