You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Failed to find Sentry Cocoa framework" when building on Xcode Cloud #484
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")
}
}
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?
@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
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.
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)?
Activity
linear commentedon Nov 19, 2025
KMP-76
romtsn commentedon Nov 25, 2025
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?
buenaflor commentedon Dec 1, 2025
For these cases #325 would be helpful
JAWS-tm commentedon Dec 2, 2025
Hey @romtsn, I haven't set the path manually, idk why the log say that
buenaflor commentedon Dec 2, 2025
@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
JAWS-tm commentedon Dec 2, 2025
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.
buenaflor commentedon Dec 2, 2025
Thanks, I'll have a look if we can add support for #325 soon
Ayush-Kotlin-Dev commentedon Dec 16, 2025
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)?
JAWS-tm commentedon Dec 16, 2025
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.
buenaflor commentedon Dec 16, 2025
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