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

Cannot Execute Jazzy that's installed using Bundler on XCode 15.2 #1384

Closed
hilmyveradin opened this issue Apr 24, 2024 · 4 comments
Closed
Labels

Comments

@hilmyveradin
Copy link

I worked on OSS repo which using jazzy as it's documentation. However, the jazzy script is not recognizable as command and when I run bundle exec jazzy, it fails. Few things:

  1. I'm using XCode 15.2
  2. I'm using Ruby version 3.2.2
  3. Jazzy already included in Gemfile.lock. It even already included in the vendor/bin/ruby file (see first image)
  4. It appears there's error like the second image
  5. When traced, it has something to do with "file exists but not in directory"

Any idea why?

image
image
image

@johnfairh
Copy link
Collaborator

That's an error from xcodebuild -- it happens if you have a file called build from your project where xcodebuild itself wants to create a build directory.

@johnfairh johnfairh added the help label Apr 24, 2024
@hilmyveradin
Copy link
Author

I see. But it's expected for the project to be built in order to jazzy to generate documentation right? Or it's not?

I'm kind of confused on how to address this root cause, to be honest

@johnfairh
Copy link
Collaborator

Yes, jazzy runs xcodebuild as part of generating documentation.

You haven't said if you have found a possible build file in your project that is breaking things?

You can either rename that file or maybe look at changing xcodebuild's build directory by passing it -derivedDataDir (see man xcodebuild).

@johnfairh
Copy link
Collaborator

Closing, answered.

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

No branches or pull requests

2 participants