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

Error when trying to import Expression in Playground #3

Closed
PopFlamingo opened this issue Dec 30, 2017 · 5 comments
Closed

Error when trying to import Expression in Playground #3

PopFlamingo opened this issue Dec 30, 2017 · 5 comments

Comments

@PopFlamingo
Copy link

Amazing project it's beautiful !
I just had a little issue where Xcode (9.2) wasn't able to run the playground due to an error when trying to import Expression, changing the name of the playground solves the issue apparently (other people on SO have similar issues).

@mpangburn
Copy link
Owner

mpangburn commented Dec 30, 2017

I've experienced the same issue, and I'm afraid the Playground name isn't the bug. The other related bug is "Can't find Expression_Sources" (#4). I searched for a long time to find a real solution for these without success, but I can offer a temporary solution:

  1. In AnimationEvaluation.swift (located in the Sources folder of Expression.xcplayground), comment out the import Expression line.
  2. Return to a Playground page and allow compilation of the Sources to fail. You may not get any error message in the console, but you should see the little red Xcode failure icon at the top of the screen (likely with the number 3 on it).
  3. Return to AnimateEvaluation.swift and uncomment the import Expression line.
  4. Return to the Playground pages--they should now function.

I'll be continuing to look for the cause of these problems, but I'm afraid for the time being we'll have to make do with this workaround.

@mpangburn mpangburn changed the title Using the same name for the playground and the framework confuses Xcode Error when trying to import Expression in Playground Dec 30, 2017
@PopFlamingo
Copy link
Author

PopFlamingo commented Dec 30, 2017 via email

@mpangburn
Copy link
Owner

Yes, the issue persists for me even when renaming the Playground--can you consistently open the .xcworkspace file and run the Playground pages without errors after renaming?

@PopFlamingo
Copy link
Author

PopFlamingo commented Dec 30, 2017 via email

@NathanJozef
Copy link

Unfortunately even following your temporary workaround the issue is persisting on my machine. If I have time I shall see if I can fix it.

Otherwise, I'll keep checking.

A wonderful looking project though.

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