Is it reproducible with SwiftPM command-line tools: swift build, swift test, swift package etc?
[X] Confirmed reproduction steps with SwiftPM CLI. The description text must include reproduction steps with either of command-line SwiftPM commands, swift build, swift test, swift package etc.
Description
When a static library(framework) with a dependency was built in app, Xcode report an error: duplicate symbol
Expected behavior
The above swift static library can be used normally
Actual behavior
Xcode report an error: duplicate symbol
Steps to reproduce
Step:
I created a static library(framework) with a dependency by spm.
Then when I buld an app with the static library, Xcode reports an error: duplicate symbols
The following cases were tested:
Using either the Alamofire dependency or the Firebase dependency alone in Xcode will result in compilation errors.
No error will be reported when compiling the app under Objective-C, but an error will be reported when compiling the app under Swift.
Swift Package Manager version/commit hash
Swift Package Manager - Swift 5.9.0
Swift & OS version (output of swift --version ; uname -a)
1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx13.0
Is it reproducible with SwiftPM command-line tools:
swift build
,swift test
,swift package
etc?swift build
,swift test
,swift package
etc.Description
When a static library(framework) with a dependency was built in app, Xcode report an error: duplicate symbol
Expected behavior
The above swift static library can be used normally
Actual behavior
Xcode report an error: duplicate symbol
Steps to reproduce
Step:
The following cases were tested:
Swift Package Manager version/commit hash
Swift Package Manager - Swift 5.9.0
Swift & OS version (output of
swift --version ; uname -a
)1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5) Target: arm64-apple-macosx13.0