MobileNativeFoundation / MobileNativeFoundation/rules_xcodeproj

Bug: com_github_apple_swift_argument_parser//:ArgumentParserToolInfo [for tool] failed

Open
#3,178 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
626
Forks
124
PR merge metrics
No merged PRs in 30d

Description

Description

ERROR: /private/var/tmp/_bazel_jiangchao/11a172fb0b7bb90e1ea6fdb4f5a93109/rules_xcodeproj.noindex/build_output_base/external/com_github_apple_swift_argument_parser/BUILD.bazel:3:14: Compiling Swift module @com_github_apple_swift_argument_parser//:ArgumentParserToolInfo [for tool] failed: (Exit 1): worker failed: error executing command (from target @com_github_apple_swift_argument_parser//:ArgumentParserToolInfo)
(cd /private/var/tmp/_bazel_jiangchao/11a172fb0b7bb90e1ea6fdb4f5a93109/rules_xcodeproj.noindex/build_output_base/execroot/main &&
exec env -
APPLE_SDK_PLATFORM=MacOSX
APPLE_SDK_VERSION_OVERRIDE=15.4
SWIFT_AVOID_WARNING_USING_OLD_DRIVER=1
XCODE_VERSION_OVERRIDE=16.3.0.16E140
bazel-out/darwin_arm64-opt-exec-2B5CBBC6-ST-3c4d7ba9992d/bin/external/build_bazel_rules_swift/tools/worker/worker swiftc @bazel-out/macos-arm64-min12.0-applebin_macos-darwin_arm64-opt-exec-2B5CBBC6-ST-2ca2fe3bbcf6/bin/external/com_github_apple_swift_argument_parser/ArgumentParserToolInfo.swiftmodule-0.params)

error: failed to read unit file /private/var/tmp/_bazel_jiangchao/11a172fb0b7bb90e1ea6fdb4f5a93109/rules_xcodeproj.noindex/build_output_base/execroot/main/bazel-out/_global_index_store/v5/units/ToolInfo.swift.o-2H373DD07CM5Y -- Failed opening '/private/var/tmp/_bazel_jiangchao/11a172fb0b7bb90e1ea6fdb4f5a93109/rules_xcodeproj.noindex/build_output_base/execroot/main/bazel-out/_global_index_store/v5/units/ToolInfo.swift.o-2H373DD07CM5Y': No such file or directory

Reproduction steps

rt

Expected behavior

work

rules_xcodeproj version

1.16

Xcode version

16.3

Bazel version

6.1.1

rules_apple version

No response

rules_swift version

No response

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure using the reported Xcode 16.3.0.16E140 and Bazel 6.1.1 setup, starting with the rt reproduction command. Inspect external/com_github_apple_swift_argument_parser/BUILD.bazel and the ArgumentParserToolInfo target around the missing ToolInfo.swift.o unit file. Done means the target compiles without the worker error.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.