【问题标题】:Error while creating documentation with cocoa pods using Jazzy Documentation使用 Jazzy 文档创建带有可可豆荚的文档时出错
【发布时间】:2021-01-08 07:29:00
【问题描述】:

我创建了一个新项目 [在安装 pod 之前]。我正在尝试使用 jazzy 创建文档,效果很好。

我在终端使用的推荐

jazzy --min-acl internal

然后我安装了 pod 文件并尝试在终端中使用相同的命令,当时我收到类似的错误

2021-01-08 12:48:55.363 xcodebuild[1441:132556] [MT] PluginLoading: Required plug-in compatibility UUID B89EAABF-783E-4EBF-80D4-A9EAC69F77F2 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs
2021-01-08 12:48:55.364 xcodebuild[1441:132556] [MT] PluginLoading: Required plug-in compatibility UUID B89EAABF-783E-4EBF-80D4-A9EAC69F77F2 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Crayons.xcplugin' not present in DVTPlugInCompatibilityUUIDs
Running xcodebuild
Could not successfully run `xcodebuild`.
Please check the build arguments.
Saved `xcodebuild` log file: /var/folders/5t/vxhnv5ys0fb217mwggmpsk6r0000gr/T/xcodebuild-1ECA7C52-5668-4982-A6FD-9D9CDCBAEDBC.log
Failed to generate documentation
/Library/Ruby/Gems/2.3.0/gems/jazzy-0.13.6/lib/jazzy/executable.rb:36:in `execute_command': /Library/Ruby/Gems/2.3.0/gems/jazzy-0.13.6/bin/sourcekitten ["doc", "--"] (RuntimeError)

2021-01-08 12:48:55.363 xcodebuild[1441:132556] [MT] PluginLoading: Required plug-in compatibility UUID B89EAABF-783E-4EBF-80D4-A9EAC69F77F2 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/UncrustifyPlugin.xcplugin' not present in DVTPlugInCompatibilityUUIDs

2021-01-08 12:48:55.364 xcodebuild[1441:132556] [MT] PluginLoading: Required plug-in compatibility UUID B89EAABF-783E-4EBF-80D4-A9EAC69F77F2 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Crayons.xcplugin' not present in DVTPlugInCompatibilityUUIDs

Running xcodebuild

Could not successfully run `xcodebuild`.

Please check the build arguments.

Saved `xcodebuild` log file: /var/folders/5t/vxhnv5ys0fb217mwggmpsk6r0000gr/T/xcodebuild-1ECA7C52-5668-4982-A6FD-9D9CDCBAEDBC.log

Failed to generate documentation
    from /Library/Ruby/Gems/2.3.0/gems/jazzy-0.13.6/lib/jazzy/sourcekitten.rb:266:in `run_sourcekitten'
    from /Library/Ruby/Gems/2.3.0/gems/jazzy-0.13.6/lib/jazzy/doc_builder.rb:81:in `block in build'
    from /Library/Ruby/Gems/2.3.0/gems/jazzy-0.13.6/lib/jazzy/doc_builder.rb:79:in `chdir'
    from /Library/Ruby/Gems/2.3.0/gems/jazzy-0.13.6/lib/jazzy/doc_builder.rb:79:in `build'
    from /Library/Ruby/Gems/2.3.0/gems/jazzy-0.13.6/bin/jazzy:15:in `<top (required)>'
    from /usr/local/bin/jazzy:22:in `load'
    from /usr/local/bin/jazzy:22:in `<main>'

【问题讨论】:

  • 我也面临同样的问题..
  • 我不确定,尝试安装命令行工具。见here

标签: ios swift xcode cocoapods jazzy


【解决方案1】:

jazzy 会自动使用Project.xcodeproj 而不是使用新创建的Project.xcworkspace 来构建项目。这将导致 xcodebuild 在构建阶段失败[CP] Check Pods Manifest.lock

您可以使用此命令检查构建日志:

cat /var/folders/5t/vxhnv5ys0fb217mwggmpsk6r0000gr/T/xcodebuild-1ECA7C52-5668-4982-A6FD-9D9CDCBAEDBC.log

jazzy用来构建项目的xcodebuild命令是

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild CODE_SIGN_IDENTITY= CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO

这将选择Project.xcodeproj 而不是工作区文件

你应该使用类似这样的东西将工作空间和方案传递给 xcodebuild

jazzy --min-acl internal -x -workspace,StackExample.xcworkspace,-scheme,StackExample

参考: Issue 111

【讨论】:

  • 我尝试了您提到的以下推荐 [jazzy --min-acl internal -x -workspace,DocumentorSample.xcworkspace,-scheme,DocumentorSample]。我仍然遇到同样的错误。
  • @KAVIYAVENKAT 我可以要你的日志文件吗?
  • 日志说import SKActivityIndicatorView时文件ChangePWVC.swift有错误。请检查
  • 是的@Duc Nguyen 在日志中显示这样的错误。但是在构建项目应用程序时工作正常。没有收到此错误。
猜你喜欢
  • 1970-01-01
  • 2015-10-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-11-27
  • 1970-01-01
  • 2015-06-02
相关资源
最近更新 更多