MobileNativeFoundation / MobileNativeFoundation/rules_xcodeproj
Bug: `copy_outputs.sh` copies `swift_test` `.xctest` bundles that include `.params` files
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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