Failed to verify code signature of /.../Sentry.framework (no code signature found)
Hello Sentry team,
I'm currently working on a iOS app created with Unreal Engine, and I have a code signing issue that I need help with.
I've installed the Sentry SDK for Unreal Engine by downloading the repo on Git. When I deploy the app to my iOS device from Unreal Engine, everything works as expected.
However, if I build and compile the app from the generated Project_Name.xcworkspace Xcode project I receive a code signing issue with the sentry framework.
Unable to install "ProjectName", failed to verify code signature of /.../Sentry.framework (no code signature found)
I've tried enable / disabling code signing a few times, I've enable / disabled code signing in Xcode -> Project -> Build Phases -> Embed Frameworks -> Sentry.framework
But that didn't solve the issue as well.
Any help would be appreciated. Thank you
framework installed: sentry-unreal-0.22.0-engine5.4-github.zip Unreal Engine Version: 5.4.4 Xcode version: 15.4 OS: MacOS Sonoma 14.6.1 iOS version: 17.6.1
@kalisina Thank you for bringing this up - we’ll check it on our end and get back to you.
Hi @tustanivsky ,
do you have any update about the issue? Let me know if you need more details.
Thanks
The Cocoa SDK does not support signing just yet but it is planned in a future release. Unfortunately, I can't give you an ETA when this will arrive.
@kalisina So far I wasn't able to reproduce it on my side - the SentryPlayground demo app we provide along with the Sentry plugin is launching as expected both from UE Editor and generated Xcode SentryPlayground (iOS).workspace.
I tried this for UE 5.4.4 and UE 5.5.1 on MacOS 15.1.1 with Xcode 16.1.
Code-signing issue for Sentry.framework should be addressed in scope of https://github.com/getsentry/sentry-cocoa/issues/4391. Once it's done we'll just have to update the Cocoa SDK in Unreal plugin accordingly.
Also running into this issue. After looking at related tickets in both repros i'm unable to tell the status still
@Pantong51 One possible workaround for this issue is to build the Sentry.framework from the source and replace the corresponding files in the plugin's Source/ThirParty/IOS directory. This should allow you to handle code-signing on your end and proceed with the installation.
Here's a script we've been using for pre-building iOS framework in the past.
That script will build and replace? Is there any comments on what is the expected values for input?
That script will build and replace? Is there any comments on what is the expected values for input?
sentryIosRootis a path to sentry-cocoa (previously it was this repo's submodule)sentryArtifactsDestination- path to dir where iOS-specific dependencies are stored in the UE plugin (<ProjectRoot>/Plugins/Sentry/Source/ThirParty/IOS)
You don't necessarily have to use this script - it just illustrates what steps should be taken to replace Sentry.framework with its code-signed version
Frameworks signing should be already addressed in https://github.com/getsentry/sentry-cocoa/pull/5271.
I've not had time to test the info you gave me in Feb, but seeing movement on this, it being addressed means for us here? No longer something to care about i.e. it just works?
Yes, once we bump sentry-cocoa dependency for Unreal plugin the code signing issue should be resolved automatically.
The corresponding fix is already included in the latest Cocoa SDK beta so we're just looking forward to it's release.
This issue should be addressed via https://github.com/getsentry/sentry-unreal/pull/944. Closing it for now but feel free to re-open if signing errors persist.