Xcode cloud custom Artificat creation

We have a repository that contains two components:

The SDK codebase

A sample app that uses the SDK for testing purposes

We’ve set up an Xcode Cloud pipeline for the sample app. In this setup, the sample app references the SDK from a local path. Within the ci_post_clone script, we build the SDK project for both the simulator and device, create an .xcframework, and then build the sample app.

Everything works fine — the sample app builds successfully, and the resulting archive is uploaded to Xcode Cloud as an artifact.

However, I also want to share the generated .xcframework with customers by including it as an artifact in the pipeline. The issue is that the .xcframework doesn’t appear in the App Store Connect build artifacts.

I’ve tried the following without success:

Placing the .xcframework inside a folder named artifacts at both the repository root and the project root

Copying the .xcframework to the $CI_ARCHIVE_PATH directory

There isn’t much documentation available on custom artifact creation in Xcode Cloud. Can someone point me to proper documentation or confirm if this is supported? I assume it should be possible, as this is a common workflow for SDK pipelines.

Xcode cloud custom Artificat creation
 
 
Q