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: 227
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:Building an Eclipse RCP application for Raspian aarch64 fails because of missing SWT classes
Goto Forum:
  


Current Time: Tue Sep 21 07:35:52 GMT 2021

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

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

Back to the top