MobileNativeFoundation / MobileNativeFoundation/rules_xcodeproj

Bug: `copy_outputs.sh` copies `swift_test` `.xctest` bundles that include `.params` files

Open
#1,648 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug

We might be copying the wrong bundle for {cc,swift}_test rules, because the copied bundle includes .param files. This doesn't seem to be an issue for BwB (besides being incorrect), but if you switch the project to BwX mode, you can get a codesigning error:

/Users/USER/Library/Developer/Xcode/DerivedData/PROJECT/Build/Products/Debug/bazel-out/darwin_arm64-dbg-ST-77b253af427c/bin/Tests.xctest: code object is not signed at all
In subcomponent: /Users/USER/Library/Developer/Xcode/DerivedData/PROJECT/Build/Products/Debug/bazel-out/darwin_arm64-dbg-ST-77b253af427c/bin/Tests.xctest/Contents/MacOS/Tests-2.params
Command CodeSign failed with a nonzero exit code

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

Start with copy_outputs.sh and reproduce the swift_test packaging path after switching the project to BwX mode. Confirm that the copied .xctest bundle contains .params files and triggers the reported codesigning failure. Done means the copied bundle no longer causes that error in BwX mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.