Referencing XCFramework in workspace

My framework project is bundled in the ‘consuming’ project inside 1 workspace in Xcode.

Creating the XCFramework as per Apple's instruction as a script-only target using xcodebuild -create-xcframework to bundle the individual framework binaries works just fine;

However, Xcode doesn’t seem to understand that the target creating the XCFramework is actually creating output:

  • I’ve added the XCFramework target as a dependency in the consuming project,
  • it builds when the main project is built,
  • but there’s no output that can be selected in the Link with Libraries or Copy Frameworks steps under Build Phases; just the regular frameworks show up, not my newly built XCFramework.

Directly adding the framework via Finder as a folder from the built products folder breaks easily..

How can I tell my main project to include the XCFramework that it just build as a dependency? That is, like we do for any other framework in the same workspace.

Thanks,
Jay

Referencing XCFramework in workspace
 
 
Q