hale icon indicating copy to clipboard operation
hale copied to clipboard

macOS Catalina 10.15.5 reports hale studio.app 4.0.0 as damaged

Open fjlopez opened this issue 4 years ago • 14 comments

Expected behaviour

Run hale studio.app obtained from the 4.0.0 release .dmg in macOS Catalina 10.15.5.

Current Behaviour

macOS Catalina 10.15.5 reports hale studio.app as damaged, and, hence, can't be opened, even with Gatekeeper disabled.

Screenshot 2020-07-06 at 12 39 07

Steps to reproduce

  1. Open a terminal
  2. Execute sudo spctl --master-disable to disable Gatekeeper and then allow run apps downloaded anywhere.
  3. Download hale studio 4.0.0.dmg from https://www.wetransform.to/downloads/
  4. Open the dmg file.
  5. Move hale studio.app to the Applications folder.
  6. Go to the Applications folder
  7. Open hale studio.app

fjlopez avatar Jul 06 '20 10:07 fjlopez

Hi @fjlopez, thanks for using hale studio and reaching out to us!

hale studio 4.0.0 still needs Java 8 to run. The macOS version doesn't come with a packaged JDK and a typical problem is that JDK 8 is not available. Do you have JDK 8 installed? If you open a console, what does the command java -version return?

florianesser avatar Jul 06 '20 10:07 florianesser

I use jenv to manage different JDK versions. I have tested it with the Oracle JDK 8 as follows:

$ jenv global oracle64-1.8.0.144
$ javac -version 
javac 1.8.0_144
$ java -version
java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
$ echo $JAVA_HOME
/Users/javier/.jenv/versions/oracle64-1.8.0.144
$ sudo spctl --master-disable
$ open -a "Hale Studio"

and then fails

fjlopez avatar Jul 06 '20 11:07 fjlopez

Thanks for the info, we'll look into it.

florianesser avatar Jul 06 '20 13:07 florianesser

While investigating this problem, I found that hale studio 4.0.0 doesn't start up on macOS even when the error reported in this issue does not occur (see #849). I think it makes sense to work on the start problem first and see if that helps to resolve this issue.

florianesser avatar Jul 09 '20 16:07 florianesser

@fjlopez A potential workaround is described here

JohannaOtt avatar Aug 17 '21 10:08 JohannaOtt

@fjlopez The new release (4.1.0) has been tested thoroughly with current MacOS versions and models. Please let us know if you can't work with that. In that case we will re-open this ticket.

thorsten-reitz avatar Dec 03 '21 14:12 thorsten-reitz

Don't work yet. My macOS version is 11.6.1 Big Sur.

Screenshot 2021-12-05 at 12 54 50

This version is not correctly signed and notarized, the output of this command is:

$  spctl -a -v hale\ studio.app               
hale studio.app: code has no resources but signature indicates they must be present

when something like:

$  spctl -a -v hale\ studio.app               
hale studio.app: accepted

was expected (source).

fjlopez avatar Dec 05 '21 12:12 fjlopez

@fjlopez, thank you for your feedback. Please follow the installation instructions for Mac as document in the release 4.1.0 page.

Steps to run hale studio in Mac If you are using Mac with intel chip, then to be able to run the application after the installation, you must execute the below command in the terminal.

 xattr -cr '/Applications/hale studio.app'

Then launch hale studio from Applications

In case you are using Mac with M1 chip then let us know.

kapil-agnihotri avatar Dec 06 '21 07:12 kapil-agnihotri

That is an unsafe recommendation asxattr -cr is used in zero days attacks such as xcsset.

Please, review your notarisation process (e.g. here is an answer that address the case "code has no resources but signature indicates they must be present").

fjlopez avatar Dec 06 '21 09:12 fjlopez

@kapil-agnihotri Do you think this issue can be closed with the 5.x releases?

thorsten-reitz avatar May 07 '24 06:05 thorsten-reitz