Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Codesigning causes broken app
Codesigning causes broken app [message #1836196] Wed, 23 December 2020 19:48 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 235
Registered: July 2009
Senior Member
Hi all,
I've built an application with Maven Tycho. It'a a pure E4 application. If I launch it from target directory (or product folder, to be more precise), it runs successfully. Now, if I codesign that application (in the same folder), the application gets broken. If I try to launch it I get this error:

dlopen(/Users/myself/git/myproject/com.myproject.myapp.site/target/products/MyApp.ID/macosx/cocoa/x86_64/MyApp.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1300.v20200819-0940/eclipse_11103.so, 2): no suitable image found.  Did find:
	/Users/myself/git/myproject/com.myproject.myapp.site/target/products/MyApp.ID/macosx/cocoa/x86_64/MyApp.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1300.v20200819-0940/eclipse_11103.so: code signature in (/Users/myself/git/myproject/com.myproject.myapp.site/target/products/MyApp.ID/macosx/cocoa/x86_64/MyApp.app/Contents/MacOS//../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.1300.v20200819-0940/eclipse_11103.so) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs


I've added also a screenshot of the error message. How could I codesign the application so that it works after codesigning?

Thanks in advance,
Ralf.
Re: Codesigning causes broken app [message #1836214 is a reply to message #1836196] Thu, 24 December 2020 11:20 Go to previous messageGo to next message
Rolf Theunissen is currently offline Rolf TheunissenFriend
Messages: 260
Registered: April 2012
Senior Member
Hi,

I think that you define customization of the executable (the eclipse launcher), for instance with a custom icon. This changes the executable. As a result, you have to ensure that your Mac application is notarized correctly.
I don't have any experience with notarization of the application, so I cannot give you more clues. You might better answers by asking this on the tycho mailing list https://accounts.eclipse.org/mailing-list/tycho-user.

Best Regards, Rolf
Re: Codesigning causes broken app [message #1836236 is a reply to message #1836214] Fri, 25 December 2020 14:18 Go to previous message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 235
Registered: July 2009
Senior Member
I've solved it by adding an entitlements file.
Previous Topic:log WARN on RCP exit from org.apache.felix.scr
Next Topic:Target Platform: No plugins found in repository?
Goto Forum:
  


Current Time: Thu Apr 25 22:15:29 GMT 2024

Powered by FUDForum. Page generated in 0.03000 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top