-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apache Netbeans 18 is damaged and can't be opened Ventura 13.4 intel #6052
Comments
Could you check if the community installer at https://www.codelerity.com/netbeans/ has the same issue. That's built and signed using NBPackage, which we might also consider for the non-JDK bundling installer in NetBeans 19. |
Hi: I don't believe this is an issue with distribution via .dmg. A .dmg file is a disk image file format commonly associated with macOS and don't see issues with other applications distributed using a disk image file, but probably an error during signing or software update process. For reference, see the following Apple Developer documentation:
Or using GUI tool, Apparency The application or component appears to have been corrupted or tampered with since being signed. As such, the identity implied by the signing certificate is not reliable. This could be a result of the application being compromised at the point of download. Or it could simply be the result of errors occurring during signing, or in a software update process — the latter is depressingly common, even and especially for built-in macOS apps. |
@uurazzle please can you check the community installer as mentioned in my previous comment? It will help differentiate possible causes of this problem. Thanks! |
Hi @neilcsmith-net, Ok, I downloaded the "Apache-NetBeans-18.pkg" installer package. And it appears it doesn't have the same signing issues as the distributed disk image. For example...
For example, with the GUI tool, Apparency I also appreciate you don't rename the application bundle with each version release with the installer packages: "NetBeans" vs "Apache NetBeans 18", etc. Or keep it generic like "Apache NetBeans" and include the version information in the "Info.plist" file in the application bundle with the "CFBundleVersion" & "CFBundleShortVersionString" keys vs the application bundle name. Why? It makes managing "Apache NetBeans" across a fleet of Macs much more difficult as you have to add options to specifically remove the previous version "Apache NetBeans 17" when upgrading to "Apache NetBeans 18", etc. If the application bundle remained constant you can create your own package installer and it simply updates the previous version since the name/path is the same vs having to add additional scripting/workflow to remove the previous version name. Let me know if you need me to test anything else. |
Thanks @uurazzle - that's good to know. I also downloaded Apparency and verified the two on my M1 test machine. The NBPackage app bundle task and the scripts in the main repository have a different approach to finding libraries (inc. those bundled in JARs) to sign. NBPackage also uses the hardened runtime. https://github.com/apache/netbeans-nbpackage/blob/master/src/main/java/org/apache/netbeans/nbpackage/macos/MacOS.java vs I wondered if something had changed in the list of files, particularly if something just on x86_64, but that doesn't seem to be the case as far as I can tell. Anyway, Apache NetBeans 17 also reports the same issue after installation. It's curious that everything is passing notarization anyway. Another potential issue in the ASF installer is the This seems to be trying to launch from the wrong location, and then writing to a file called
Yes, all the Codelerity installers are set to do in-place upgrades. It seems the more sensible option now we're releasing every 3 months.
Thanks! I'm going to check about using NBPackage to build a macOS bundle without JDK, and some testing of that would be useful. If that works, this is another reason to consider using that for NetBeans 19. |
Hi @neilcsmith-net, Ok, sounds good. Let me know if you want me to test anything when its ready. |
Hi @neilcsmith-net: One other question, there appear two builds "Intel" and "Apple Silicon", but it appears that the "Apple Silicon" is a "Universal" build and can run on either architecture (i.e. "Intel" or "Apple Silicon"). If the build really is "Universal" then I would recommend changing the naming to "Universal" vs" Apple Silicon". Then in environments with both system architectures, could just distribute that version to simplify management by only distributing one installer package vs two. |
@uurazzle in which installer? The community installer is currently limited to "Intel" because of the bundled JDK. Actually, NBPackage needs to be updated to also support aarch64. But we'll need different behaviour depending on whether there is a bundled JDK, and what architecture it is. I'm not sure if there's a source of universal JDK? |
Hi @neilcsmith-net: Sorry, you are correct this disk image is intel only. Nevermind, but would be nice to have it universal. |
Works for me in this context: Product Version: Apache NetBeans IDE 18 |
@uurazzle just tried using NBPackage to build an installer without JDK - see https://github.com/codelerity/netbeans-installers/releases/tag/v18-test1 It's under a different app bundle ID for testing, and signed and notarized with Codelerity certificate still. This might be a possibility for Apache installers for NB19 if it works better. NBPackage needs an update to use universal architecture for the Swift launcher when there is no runtime, which I can take a look at if this seems a good way forward. |
Well this is very odd. It works for me now too. |
Hi @datb-com: Once you do the workaround for the damaged application (FInder -> CTRL+click select open) I believe it adds it to the privacy database on macOS. You can try using the
Or a "big hammer" method you could delete the following file in your test user space:
I haven't had time to test this myself, but an idea. |
Update! My colleage (on an M1) just had the same issue. |
@datb-com could you also see if the installer linked in my previous comment fixes that issue for you? |
How about using the installer vs DMG? IMHO, the issue is the application signature as part of the backend application build process used to create the disk images NOT modifications of the disk images. I manage a ton of applications distributed via disk images and haven't seen this type of application signature due issue to using disk images vs other methods like installer package, etc. I would suggest downloading and trying using the GUI tool, Apparency, and reading the documentation for a better understanding of the issue. |
I'm taking a look at updating NBPackage to build the Swift launcher with the architecture of the bundled JDK, and universal architecture if there is none. I've updated the previously linked download - https://github.com/codelerity/netbeans-installers/releases/tag/v18-test1 There is both a universal without JDK installer, and an installer with arm64 JDK. It doesn't look like anyone downloaded the previous one, and there's been no feedback. The ASF installer for NetBeans 19 will not have this issue fixed unless we get some feedback on whether the universal installer option works OK and is addressing the problem! |
Apache-NetBeans-18-universal.pkg |
@datb-com thanks for the feedback. I've started a thread on dev@ list about this too. |
I've just uploaded an ASF signed package of 19-rc4 to https://nightlies.apache.org/netbeans/candidate/installers/ Please help verify this before we move to this packaging for the NetBeans 19 release. Thanks! |
This is hopefully resolved in NetBeans 19. Please comment here if you see the problem again. |
So what is the best way to install NetBeans 19 on Apple Silicon? I tried the community x86_64 installer - and white it does work on Apple silicon - NetBeans seems slow to start up (load modules) and initialize projects compared to the Binaries (Platform Independent) zip. Does that seem right, or am I just imagining it? |
Ah nvm... the . |
Apache NetBeans version
Apache NetBeans 18
What happened
Installing Apache Netbeans 18 from the dmg. Installed fine on two mac M1 systems, but got a signing error, from the same dmg, on two mac Intel systems. All running mac os Ventura 13.4.
How to reproduce
Presumably get the Netbean 18 dmg: Apache-NetBeans-18-bin-macosx.dmg
My experience over 4 macs indicates that this might be an Intel vs M1 issue, so use an Intel mac for this test.
Check the shasum 512 hash:
shasum -a 512 Apache-NetBeans-18-bin-macosx.dmg
45ae189936973612cdaefca127f7664257081a3794c84c28213d395f5e3cf46910bafb6f1d89a0e2466c5dc35481a9acde1be4506cf55ff356a0404052529cdd Apache-NetBeans-18-bin-macosx.dmg
Run the installer (works fine).
Run the resulting 'Apache NetBeans 18.app'
Get the error about it being damaged.
Did this work correctly in an earlier version?
No / Don't know
Operating System
mac os Ventura 13.4
JDK
ava version "17.0.5" 2022-10-18 LTS Java(TM) SE Runtime Environment (build 17.0.5+9-LTS-191) Java HotSpot(TM) 64-Bit Server VM (build 17.0.5+9-LTS-191, mixed mode, sharing)
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
Repeatable.
Are you willing to submit a pull request?
No
The text was updated successfully, but these errors were encountered: