Post

Replies

Boosts

Views

Activity

Reply to No such module 'FrameworkName' when archive
I was able to fix it by separating the xcframework to its own Swift Package let package = Package(     name: "TheLibrary",     products: [         .library(name: "TheLibrary", targets: ["TheLibrary"]),     ],     dependencies: [],     targets: [         .binaryTarget(name: "TheLibrary", path: "Sources/TheLibrary.xcframework")     ] ) and then including as a dependency in main project. let package = Package(     name: "MainProject",     platforms: [.iOS(.v11), .macOS(.v10_15)],     products: [         .library(name: "MainProject", targets: ["MainProject"])     ],     dependencies: [         .package(url: "../TheLibrary", from: "1.0.0")     ],     targets: [         .target(             name: "MainProject",             dependencies: [                 "TheLibrary"             ]         )     ] ) I hope it helps!
Jan ’21