I wonder if its possible to get target based dependency using Swift Package Manager without Xcode resolving all dependency in package. I have a package like this: // swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: ReCaptcha, platforms: [ .iOS(.v9) ], products: [ .library( name: ReCaptcha, targets: [ReCaptcha]), .library( name: ReCaptchaRx, targets: [ReCaptchaRx]) ], dependencies: [ .package(url: https://github.com/ReactiveX/RxSwift.git, from: 6.0.0), .package(url: https://github.com/JakubMazur/AppSwizzle.git, from: 1.3.2), ], targets: [ .target( name: ReCaptcha, dependencies: [], path: ReCaptcha/Classes, exclude: [Rx], linkerSettings: [ .linkedFramework(UIKit) ] ), .target( name: ReCaptchaRx, dependencies: [ ReCaptcha, .product(name: RxSwift, package: RxSwift) ], path: ReCaptcha/Classes