Xcode 14 Error | Could not successfully run `xcodebuild`
iSgarb opened this issue · comments
iSgarb commented
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
John Fairhurst commented
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.
iSgarb commented
Thank you. I could generate the docu usaing the following command:
jazzy -c -x -workspace,projectName.xcworkspace,-scheme,projectName
John Fairhurst commented
That's great!