and this error does not appear when retrying the build.
In practice, this is caused by an implicit dependency through another target and the use of @_exported, so we need to declare the dependency explicitly.
environment
# swift --version
Swift version 5.10 (swift-5.10-RELEASE)
Target: aarch64-unknown-linux-gnu
In my project, every first clean build causes the next error.
and this error does not appear when retrying the build. In practice, this is caused by an implicit dependency through another target and the use of
@_exported
, so we need to declare the dependency explicitly.