sentry-unreal icon indicating copy to clipboard operation
sentry-unreal copied to clipboard

Failed to verify code signature of /.../Sentry.framework (no code signature found)

Open kalisina opened this issue 11 months ago • 9 comments

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

Image

Image

kalisina avatar Jan 17 '25 15:01 kalisina

@kalisina Thank you for bringing this up - we’ll check it on our end and get back to you.

tustanivsky avatar Jan 20 '25 12:01 tustanivsky

Hi @tustanivsky ,

do you have any update about the issue? Let me know if you need more details.

Thanks

kalisina avatar Jan 21 '25 14:01 kalisina

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.

bitsandfoxes avatar Jan 23 '25 08:01 bitsandfoxes

@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.

tustanivsky avatar Jan 23 '25 09:01 tustanivsky

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.

tustanivsky avatar Feb 03 '25 13:02 tustanivsky

Also running into this issue. After looking at related tickets in both repros i'm unable to tell the status still

Pantong51 avatar Feb 12 '25 16:02 Pantong51

@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.

tustanivsky avatar Feb 25 '25 07:02 tustanivsky

That script will build and replace? Is there any comments on what is the expected values for input?

Pantong51 avatar Feb 25 '25 16:02 Pantong51

That script will build and replace? Is there any comments on what is the expected values for input?

  • sentryIosRoot is 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

tustanivsky avatar Feb 26 '25 07:02 tustanivsky

Frameworks signing should be already addressed in https://github.com/getsentry/sentry-cocoa/pull/5271.

tustanivsky avatar May 27 '25 10:05 tustanivsky

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?

Pantong51 avatar Jun 02 '25 20:06 Pantong51

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.

tustanivsky avatar Jun 03 '25 06:06 tustanivsky

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.

tustanivsky avatar Jun 04 '25 05:06 tustanivsky