Yeah, this very helpful https://developer.apple.com/documentation/swift_packages/distributing_binary_frameworks_as_swift_packages, thanks.
I done this with this steps:
add your XCFramework to targets in your library
add binary target with path "Frameworks/NameOfYourFramework.xcframework" to targets
add dependency to main target as .byName(name: "NameOfYourFramework")
move your framework to folder ProjectName/Frameworks
build and use your xcframework with your SPM library :)
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: