You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm marking this as related to SR-1393, which has the same root cause (all the deps are in the same build directory, so the compiler's search path includes more than it should).
Environment
Xcode 12.4
Additional Detail from JIRA
md5: f082009779b0056744aee88b06e7b9e9
relates to:
Issue Description:
Reproduction steps:
Create a new SwiftPM package.
Add (say) ArgumentParser as a dependency
https://github.com/apple/swift-argument-parser
Add
import ArgumentParser
to one of the source code files. Things should compile okay withswift build
.Remove the ArgumentParser dependency from
Package.swift
Run
swift build
again.Expected behavior: Second run of
swift build
should fail becauseArgumentParser
is no longer a dependency, so the module should fail to import.Actual behavior: Second run of
swift build
succeeds, but tryingswift build -c release
fails with the expected error.The text was updated successfully, but these errors were encountered: