Code Block // 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: "MyPackage", defaultLocalization: "en_us", platforms: [ .iOS(.v12), .watchOS(.v6), .macOS(.v10_15) ], products: [ .library( name: "MyPackage", targets: [ "MyPackage" ]), ], dependencies: [ ], targets: [ .target( name: "MyPackage", dependencies: [ .byName(name: "LocalXCFramework") ], path: "Sources/" ), .binaryTarget( name: "LocalXCFramework", path: "Frameworks/LocalXCFramework.xcframework" ) ] )
In this example, if I try to import the modules from LocalXCFramework, I get an error saying it couldn't be found.