No such module 'Cocoa' in Swift Playground

前端 未结 3 1940
清酒与你
清酒与你 2020-12-24 06:20

I\'m trying to follow some of the code used in the WWDC playgrounds session, I\'m trying to import the Cocoa framework with:

import Cocoa

B

3条回答
  •  囚心锁ツ
    2020-12-24 06:35

    This answer helped me:

    https://forums.bignerdranch.com/t/import-cocoa-in-playground-is-giving-error/8091/2

    I fixed it… never replace an iOS playground by a OS X playground when you name them the same… it’ll stick with the iOS mode…

提交回复
热议问题