Skip to content

"Failed to find Sentry Cocoa framework" when building on Xcode Cloud #484

Open

Description

@JAWS-tm

Framework

Compose Multiplatform

Platform

Apple

Installed

Swift Package Manager

Version

0.19.0

Steps to Reproduce

When building my iOS target on Xcode Cloud, the build fails even though it works locally.

sentry-cocoa is added via Swift Package Manager in Xcode, and local builds correctly detect and link the Sentry.xcframework :

Found Sentry Cocoa framework path using ManualSearchStrategy at /Users/jules/Library/Developer/Xcode/DerivedData/iosApp-aimapgjcemvpsqhgibcyupauiloz/SourcePackages/artifacts/sentry-cocoa/Sentry-Dynamic/Sentry-Dynamic.xcframework/ios-arm64

However, when Xcode Cloud runs the build, it cannot locate the Sentry Cocoa framework.

Expected Result

The project should build successfully on Xcode Cloud, just like it does locally.

Actual Result

The build fails with the following output:

Set up Sentry Cocoa linking for targets: [iosArm64]
Failed to find Sentry Cocoa framework. Steps to resolve:

FAILURE: Build failed with an exception.

* What went wrong:
Failed to configure iosArm64: Failed to find Sentry Cocoa framework. Steps to resolve:

1. Install Sentry Cocoa via SPM in Xcode
2. Verify framework exists in Xcode's DerivedData folder:
   - If static: Sentry.xcframework
   - If dynamic: Sentry-Dynamic.xcframework
  
If problem persists consider setting explicit path in build.gradle.kts:
sentryKmp { 
    linker {
        frameworkPath.set("path/to/Sentry.xcframework") 
    }
}

Activity

  1. linear commented on Nov 19, 2025

    @linear
  2. romtsn commented on Nov 25, 2025

    @romtsn
    Contributor

    hey @JAWS-tm do you set the correct path to the framework in xcode cloud? I'm seeing you're setting the framework path manually, could you perhaps share how you do that?

  3. buenaflor commented on Dec 1, 2025

    @buenaflor
    Contributor

    For these cases #325 would be helpful

  4. JAWS-tm commented on Dec 2, 2025

    @JAWS-tm
    Author

    Hey @romtsn, I haven't set the path manually, idk why the log say that

  5. buenaflor commented on Dec 2, 2025

    @buenaflor
    Contributor

    @JAWS-tm no worries, it was just the log stating that setting a manual path might help.

    I don't have any concrete solutions now since we haven't tested it in xcode cloud but until we implement something like #325 maybe it's possible for you to download it and link it via

    sentryKmp { 
        linker {
            frameworkPath.set("path/to/Sentry.xcframework") 
        }
    }
  6. JAWS-tm commented on Dec 2, 2025

    @JAWS-tm
    Author

    Yes, that’s what I did for now as a temporary workaround. I downloaded the Sentry.xcframework from the Sentry Cocoa releases and linked it manually using the frameworkPath option.
    I’ll wait for #325 to see if it helps.

  7. buenaflor commented on Dec 2, 2025

    @buenaflor
    Contributor

    Thanks, I'll have a look if we can add support for #325 soon

  8. Ayush-Kotlin-Dev commented on Dec 16, 2025

    @Ayush-Kotlin-Dev

    Hi, I’m facing the same issue on Xcode Cloud. Local builds work, but the iOS build fails with “Failed to find Sentry Cocoa framework.”
    I also tried manually linking Sentry.xcframework via frameworkPath, but it doesn’t work on Xcode Cloud.
    Is there any known workaround for this, and do you have an ETA for a release that includes the fix (e.g. #325)?

  9. JAWS-tm commented on Dec 16, 2025

    @JAWS-tm
    Author

    A workaround is to download the Sentry.xcframework from here :
    https://github.com/getsentry/sentry-cocoa/releases

    And then manually link it, like you tried to do.

  10. buenaflor commented on Dec 16, 2025

    @buenaflor
    Contributor

    Note you should download a version that is compatible with the used KMP version (see readme)

    I will have a look in the next couple days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions