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

["Bug"] nef compile Could not get playgrounds at path #161

Closed
ferranpujolcamins opened this issue Jul 22, 2020 · 5 comments
Closed

["Bug"] nef compile Could not get playgrounds at path #161

ferranpujolcamins opened this issue Jul 22, 2020 · 5 comments

Comments

@ferranpujolcamins
Copy link

Description

I run nef compile and I got an error on a playground that previously worked fine

nef compile --project SensorDocs.app/

Expected outcome

The playground is built.

Observed outcome

I get the following error:

Getting playgrounds in MacOS ✗
☠️ compiling Xcode Playgrounds from '[...]SensorDocs.app' failed with error:
Compiler failure. Could not get playgrounds at '[...]SensorDocs.app/Contents/MacOS'

nef modules, version, platform

macOS playground
nef 0.6.1

Tooling

  • Xcode version: 11.5

Other

Same issue with the markdown command

Maybe it's a permissions problem? Maybe something wrong with some path?
Let me know how can I help debugging this.

@miguelangel-dev
Copy link
Member

miguelangel-dev commented Jul 22, 2020

Ey @ferranpujolcamins!

Yep, it seems it is a problem related to permissions, if you are running it locally, could you fix them and relaunch?

sudo chmod -R 755 SensorDocs.app
nef compile --project SensorDocs.app

@ferranpujolcamins
Copy link
Author

The problem still persists.
After a quick look with ls the permissions look fine.
Any specific file to check?

@miguelangel-dev
Copy link
Member

miguelangel-dev commented Jul 22, 2020

Let's review your project structure to check playgrounds are linked properly:

  1. Go to SensorDocs.app/Contents/MacOS and you will find your SensorDocs.xcworkspace
  2. In this file should be linked the playgrounds, we go to review it. Open with any editor SensorDocs.app/Contents/MacOS/SensorDocs.xcworkspace/contents.xcworkspacedata
  3. You should see your playgrounds listed in <FileRef> tags, the structure should be location ="group:*.playground"

is it correct?

@ferranpujolcamins
Copy link
Author

My playground has no such workspace. After comparing with a freshly created nef playground I realized other files are missing. I think I messed up and just partially added the playground to git.
I'll just create one from scratch.

Apologies for opening a bug prematurely.

Thank you for your time and help. It's really appreciated.

@miguelangel-dev
Copy link
Member

miguelangel-dev commented Jul 22, 2020

Sure! No problem!

If you need help with your new nef project just tell us :)

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

No branches or pull requests

2 participants