nvzqz / Sage

A cross-platform chess library for Swift
Apache License 2.0
375 stars 43 forks source link

No such module, when importing Sage in playground #2

Closed Sajjon closed 8 years ago

Sajjon commented 8 years ago

Hi, I am very excited about this project! 👍

I git clone master branch and opened the Playground but I get a compile error on the

import Sage

Line, with the error "No such module 'Sage'".

Any ideas?

nvzqz commented 8 years ago

You need to open Sage.xcodeproj, build it, and then go to the playground file from within the Xcode project.

For some reason Xcode 8 doesn't want to run any of the library's code, but it works correctly in Xcode 7.

Sajjon commented 8 years ago

Ah I had to build the Sage OSX and not iOS target! Maybe this info can be added to the installation README? ;)

Thanks!

nvzqz commented 8 years ago

The default platform for the playground is OS X, but you can change it to iOS or tvOS. I'll definitely clarify this in the readme, thanks!

nvzqz commented 8 years ago

Added 17d2bd91e9a78edbec4a1ba2bc657e9db0a5c0c9