Swift Playground Ipad “answers” program to Xcode

I created a small program with the answers template in playgrounds for Ipad. Now in xcode project, I want to use “build“ it , to use it for my ipad, but I’m not able to.

FIrst I sended the playground to my Mac, unzipped and added the swift files into my project...but a lot of errors. Could anyone explain me how to export one of the sample in the playgrounds for ipad “answers template” , and use it in xcode for mac to build the program....

Replies

Have you solved it? I also want to know.


My mail is:267351279@qq.com

Maybe your writing in swift 4 but Xcode is using swift 3. Search for swift Lang in build setting and change to 4

I also am trying to compile a swift playground into an xcode project. It is proving quite difficult and I can't believe it is not more simple. Bump to this thread and +1 to wanting a path from playground -> application.