Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional playground support #29

Open
uraimo opened this issue Jan 9, 2017 · 4 comments
Open

Optional playground support #29

uraimo opened this issue Jan 9, 2017 · 4 comments

Comments

@uraimo
Copy link

uraimo commented Jan 9, 2017

Adding a playground to a project generated with SwiftPlate is a bit convoluted, you need to wrap it in a workspace and then create and register in the plist an empty umbrella c header (that swiftplate normally doesn't include).

It would be nice to have all this done automatically when creating the project, if someone else is interested i could implement it.

@JohnSundell
Copy link
Owner

Sounds great to me! 👍 You don't really need the umbrella C header for a pure Swift project though, right?

@uraimo
Copy link
Author

uraimo commented Jan 10, 2017

You don't really need the umbrella C header for a pure Swift project though, right?

Correct, you need it only if you want to export something to objective-c, and for some mysterious reason to use the framework inside playgrounds.

So, i think we could have both the workspace and the header in the template and then remove them if the user doesn't care about playground support, better than generating them via code or having a separate branch with this additional stuff.

@agisilaos
Copy link

Yup I'm super interested in that feature! @uraimo!

@uraimo
Copy link
Author

uraimo commented Apr 8, 2017

@agisilaos it's in my TODO list, will have time for this soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants