How to add xcframework to SPM from xcodeproj?

Hello!

I have some problems with adding a xcframework to swift package from xcodeproj.
My directories looks like:

project.xcodeproj
----MySwiftPackage
----Frameworks/
---------------------SomeXCFramework.xcframework

How I can to add xcframework to my swift package?
I tried to add via ".binaryTarget" case. But it's not working

        name: "SomeFramework",
        path: "..Frameworks/SomeFramework.xcframework"
    ),