FR
Joined: Jun 25, 2017
Post Count: 54
Status:
Offline
Re: automatically open .sh3d file on a Mac
Hi all
So I build SW7.1 with the official build.xml using macosxInstaller option. So, this time I have a M2 mac and I have tested my problem on Sonoma and Ventura.
It appears that when I click on SW7.1 icon, there is a strange message "Impossible d'ouvrir l'application". On intel version, we just have the emergency message about "unauthorized app". But this time nothing, just this strange message.
I run the app from cmd, and I obtain a very long message :
The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x6000022f2ca0 {Error Domain=NSPOSIXErrorDomain Code=153 "Unknown error: 153" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}
FR
Joined: Jun 25, 2017
Post Count: 54
Status:
Offline
Re: automatically open .sh3d file on a Mac
As you previously write : <<macosxInstaller target will build a dmg but it won't be signed and can't be notarized, i.e. end users who download it will be able to run the application it contains only if they right click on it to select Open item in contextual menu.>> But this option is not available this time. I try many many different options and I found no way.
Finally, I use a cmd command :
codesign --force --deep --sign - SW3D.app
and it works, which suggests that it is really a problem of signature
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: automatically open .sh3d file on a Mac
I haven't made some tests on an unsigned version of Sweet Home 3D for a long time, so I tried again, and actually, there's an easier solution than the one you tried: if macOS refuses to open the downloaded application the first time, it accepts to open it the second time you right click on its icon. But this trick doesn't seem to work under macOS Sonoma, even after following Apple's suggestions or this more detailed page. Maybe, you should consider subscribe to Apple Developer Program to get a certificate that you'll use to sign the application and notarize it.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
FR
Joined: Jun 25, 2017
Post Count: 54
Status:
Offline
Re: automatically open .sh3d file on a Mac
By the way, I update the four dylibs of my 7.1 version by the ones coming from 7.2 : libgluegen_rt / libjogl_desktop / libnativewindow_awt / libnativewindow_macosx
Doing this, when I double click the app, the app icon appears in the task bar but no window is showing. So I also update gluegen-rt.jar / jogl-all.jar
Nothing changes, the app does not show.
If you know what to do, I would love a hint :)
If you have to search for an answer, forget it. It currently works fine, I will not do this update.
France
Joined: Nov 7, 2005
Post Count: 9426
Status:
Offline
Re: automatically open .sh3d file on a Mac
You should also update the build.xml script, inspiring you from these changes.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator