Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-10645] Package manager cache issues switching code coverage on and off #4864

swift-ci opened this issue May 9, 2019 · 2 comments


Copy link

@swift-ci swift-ci commented May 9, 2019

Previous ID SR-10645
Radar rdar://problem/51080767
Original Reporter SDGGiesbrecht (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 511e4d890d655a303c4305050ec50245

cloned to:

Issue Description:

Going back and forth between builds with and without `--enable-code-coverage` causes linker failures.

Easy to reproduce with Swift 5.0.1 (macOS):

mkdir Demonstrate
cd Demonstrate
swift package init
swift test --enable-code-coverage
swift test --generate-linuxmain


Undefined symbols for architecture x86_64:
  "___llvm_profile_runtime", referenced from:
      ___llvm_profile_runtime_user in XCTestManifests.swift.o
     (maybe you meant: ___llvm_profile_runtime_user)
ld: symbol(s) not found for architecture x86_64
<unknown>:0: error: link command failed with exit code 1 (use -v to see invocation)
Copy link

@belkadan belkadan commented May 9, 2019

Is code coverage not considered an incremental-build-affecting flag?

Copy link
Contributor Author

@swift-ci swift-ci commented May 4, 2021

Comment by Jeremy David Giesbrecht (JIRA)

This issue resolved itself at some point. It does not manifest in Swift 5.4.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

2 participants