I'd like to build an XCFramework and the consuming app in a single workspace to make sure the latest version of the framework is bundled with the app.
So both projects - framework and app - are bundled in a common workspace in Xcode;
just as we are used to with regular frameworks.
In the framework's project I'm creating the XCFramework as per Apple's instruction as a script-only target using xcodebuild -create-xcframework
to bundle the individual framework binaries.
Now I'd like to include the generated .xcframework
in the app project.
However, Xcode doesn’t seem to understand that the framework project 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 to be selected in the Link with Libraries or Copy Frameworks steps of the app project
Directly adding the framework via Finder as a folder from either Debug/Release folder doesn't make sense, which one would you pick?
This is a trivial step for regular frameworks but apparently I'm overlooking something when dealing with the .xcframework
.
How to proceed?
Thanks, Jay