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

Xcode 14 Error | Could not successfully run xcodebuild #1322

Closed
iSgarb opened this issue Sep 20, 2022 · 3 comments
Closed

Xcode 14 Error | Could not successfully run xcodebuild #1322

iSgarb opened this issue Sep 20, 2022 · 3 comments
Labels

Comments

@iSgarb
Copy link

iSgarb commented Sep 20, 2022

Using 'jazzy -c' in a Xcode 14 project I get this error:

Error: Failed to generate documentation
Traceback (most recent call last):
	9: from /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/bin/ruby_executable_hooks:22:in `<main>'
	8: from /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/bin/ruby_executable_hooks:22:in `eval'
	7: from /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/bin/jazzy:23:in `<main>'
	6: from /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/bin/jazzy:23:in `load'
	5: from /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/gems/jazzy-0.14.3/bin/jazzy:16:in `<top (required)>'
	4: from /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/gems/jazzy-0.14.3/lib/jazzy/doc_builder.rb:80:in `build'
	3: from /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/gems/jazzy-0.14.3/lib/jazzy/doc_builder.rb:80:in `chdir'
	2: from /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/gems/jazzy-0.14.3/lib/jazzy/doc_builder.rb:82:in `block in build'
	1: from /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/gems/jazzy-0.14.3/lib/jazzy/sourcekitten.rb:269:in `run_sourcekitten'
/Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/gems/jazzy-0.14.3/lib/jazzy/executable.rb:39:in `execute_command': /Users/sgarciab/.rvm/gems/ruby-2.6.5@cocoapods1.11.3/gems/jazzy-0.14.3/bin/sourcekitten ["doc", "--module-name", "repoName", "--"] (RuntimeError)

Running xcodebuild

Could not successfully run `xcodebuild`.

Please check the build arguments.

Saved `xcodebuild` log file: /var/folders/z6/lpx16sy52d183r2j8xzfmmpc0000gp/T/xcodebuild-87443580-6A1E-489B-B9C4-561AE935B25F.log

The project does compile with no problem on all targets.

Tech Stack:

  • Cocoapods 1.11.3
  • Xcode 14.0 (14A309)
  • Jazzy 0.14.3
  • macOs 12.6
  • Mac mini Intel i7 2014
@johnfairh
Copy link
Collaborator

The place to start is the log file - general process is to read it, figure out why the xcodebuild is failing, what flags it needs to build whatever module you are trying to document, then add those flags to your jazzy command.

@johnfairh johnfairh added the help label Sep 22, 2022
@iSgarb
Copy link
Author

iSgarb commented Sep 22, 2022

Thank you. I could generate the docu usaing the following command:
 jazzy -c -x -workspace,projectName.xcworkspace,-scheme,projectName

@johnfairh
Copy link
Collaborator

That's great!

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