0

Is it possible for a Local Swift Package to depend on a Xcode Project (that creates a xcframework) in the same workspace?

I have tried things in the targets section in Package.swift file to point to the path where the local Xcode project is.

targets: [  
    .target(  
        name: "SomeJourney",
        dependencies: ["OurUIFramework"]),
    .binaryTarget(name: "OurUIFramework", path: "../../Frameworks/OurUIFramework")
]
Joakim Danielson
  • 43,251
  • 5
  • 22
  • 52
e1un
  • 3
  • 1
  • 1
    No - Swift packages can only depend on other Swift packages. If you want to depend on a framework that isn't a Swift package, you need to make it a precompiled binary and wrap that in a Swift package yourself. – Dávid Pásztor Feb 02 '23 at 09:40

0 Answers0