Skip to content

[Bug]: Application cannot be opened. #24

Open

Description

@nikorsd

Distribution

Other

Distribution

MacOS 26

macutil Version

0.2.0

Branch

main

Describe the bug

Trying to run MacUtil with terminal yields this error.

Opening via this command.
open ./Downloads/MacUtil-Universal.app

Result:
The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0xb00c446c0 {Error Domain=NSPOSIXErrorDomain Code=111 "Unknown error: 111" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}

Steps to reproduce

  1. Open terminal
  2. Run the application with open

Expected behavior

The window to appear and the application to run.

Additional context

This was executed on zsh in Tabby.
MacBook Air M4

Checklist

  • I checked for duplicate issues.
  • I checked existing discussions.
  • This issue is not included in the roadmap.
  • This issue is present on both stable and development branches.

Activity

  1. added
    bug
    on Jul 28, 2025
  2. ak127a commented on Jul 28, 2025

    @ak127a

    +1

  3. pousoupou commented on Jul 28, 2025

    @pousoupou

    exactly the same error appearing to me as well.

    MacOS Sequoia 15.5
    Macbook Air M1

  4. JJRPF commented on Jul 28, 2025

    @JJRPF

    Getting same error. Macos 15.5 M2 Macbook pro.

    The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x60000001c270 {Error Domain=NSPOSIXErrorDomain Code=111 "Unknown error: 111" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}

  5. RocGod commented on Jul 28, 2025

    @RocGod

    Exactly the same error appearing to me as well.

    MacOS Sequoia 15.5
    Macbook Pro M2 Pro

  6. BobClav commented on Jul 28, 2025

    @BobClav

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/
    change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

  7. ujain1999 commented on Jul 28, 2025

    @ujain1999

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/ change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

    I tried doing this and while it does open, it immediately unexpectedly crashes.
    I've attached the error details here

  8. Lunathecatte commented on Jul 28, 2025

    @Lunathecatte

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/ change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

    I tried doing this and while it does open, it immediately unexpectedly crashes. I've attached the error details here

    I have exactly the same as you do.

  9. artur-krzyzak commented on Jul 28, 2025

    @artur-krzyzak

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/ change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

    I tried doing this and while it does open, it immediately unexpectedly crashes. I've attached the error details here

    I have exactly the same as you do.

    Same with me. I tried on Mac Mini M2 Sequoia, and also on Ventura running on Parallels VM.
    Error logs: here

  10. lokesh7suman commented on Jul 28, 2025

    @lokesh7suman

    same

  11. danielsneira commented on Jul 28, 2025

    @danielsneira

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/ change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

    Did the same, but crashed, then tried to make it work with GPT's help, and it recommended re-signing the app and then it worked for me:

    codesign -s - --force --deep ./name.app

  12. hasanakhiar commented on Jul 28, 2025

    @hasanakhiar

    Facing Same issue on M1 Air
    Error Log

  13. marshel commented on Jul 29, 2025

    @marshel

    codesign -s - --force --deep ./name.app

    Used the codesign on my machine then chmod +x then tried to run it. Kepp the error bellow

    The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5 "Launch failed." UserInfo={NSLocalizedFailureReason=Launch failed., NSUnderlyingError=0x7fb79ff04570 {Error Domain=NSPOSIXErrorDomain Code=111 "Unknown error: 111" UserInfo={NSLocalizedDescription=Launchd job spawn failed}}}

    not a solution for me on Macbook Pro 2019 Intel i9 on sequoia 15.5

  14. artur-krzyzak commented on Jul 29, 2025

    @artur-krzyzak

    Ok, so I will describe steps I made to work it out (thanks for all people sharing their bits of code, as gathering them made macutil run on my mac mini M2 Pro Sequoia). I have macutil chilling in Downloads folder.

    1. open ./MacUtil-Universal.app
      ------> got error: "The application cannot be opened for an unexpected reason, error=Error Domain=RBSRequestErrorDomain Code=5... blah blah blah"

    2. cd MacUtil-Universal.app/Contents/MacOS/
      sudo chmod +x MacUtilGUI
      cd ~/Downloads
      open ./MacUtil-Universal.app
      -------> application crashed immediately with error logs: here

    3. codesign -s - --force --deep ./MacUtil-Universal.app
      here terminal might throw notification on you that it doesn't have enough permissions, so you need to go to Systems Settings>Privacy & Security > App Management and elevate permissions to whatever terminal application you are using in section "Allow the applications below to update or delete other applications". Then it will ask to Quit and reopen terminal.

    4. open ./MacUtil-Universal.app
      Hurray! It starts now (and works)!

  15. JollyJamma commented on Jul 30, 2025

    @JollyJamma

    Hi all

    I am getting the same error, even after I tried applying > codesign -s - --force --deep ./MacUtil-Universal.app

    Hopefully it'll be fixed soon.

  16. JJRPF commented on Jul 30, 2025

    @JJRPF

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/ change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

    I was able to use the utility with both this and the code sign solution by JollyJamma.

    To get it working: use these commands.
    cd MacUtil-Universal.app/Contents/MacOS/ (to the internal /contents/MacOS folder inside of the .app)
    chmod +x MacUtilGUI (Give permission to execute the .app)
    cd (back to location of the .app)
    codesign -s - --force --deep ./MacUtil-Universal.app (sign the .app)

  17. katomic commented on Aug 12, 2025

    @katomic

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/ change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

    I was able to use the utility with both this and the code sign solution by JollyJamma.

    To get it working: use these commands. cd MacUtil-Universal.app/Contents/MacOS/ (to the internal /contents/MacOS folder inside of the .app) chmod +x MacUtilGUI (Give permission to execute the .app) cd (back to location of the .app) codesign -s - --force --deep ./MacUtil-Universal.app (sign the .app)

    Can confirm THIS works on m1 Sonoma as well

  18. ChrisTitusTech commented on Aug 13, 2025

    @ChrisTitusTech
    Owner

    Updated this to include deep code signing and hopefully this will fix the can not open error on other systems. Going to leave issue open until people confirm it is gone in version 0.2.1

  19. RocGod commented on Aug 13, 2025

    @RocGod

    Updated this to include deep code signing and hopefully this will fix the can not open error on other systems. Going to leave issue open until people confirm it is gone in version 0.2.1

    Still facing issue with latest 0.2.1
    MacOS Sequoia 15.5
    Macbook Pro M2 Pro

  20. espartia commented on Aug 13, 2025

    @espartia

    The zip compression is not leaving the file executable due to the program used not supporting the feature required for that, which is still a problem, likely in addition to other attributes not being saved, which may (but probably won't be) be used for code signing.
    The easiest solution would be to package it in either a DMG or a Tar file. macOS supports extracting tar files, including compressed tar files of various compression formats.

  21. espartia commented on Aug 13, 2025

    @espartia

    MacUtilDllError.txt
    Another issue is that it's expecting Skia Sharp libraries but it isn't finding them due to them not being packaged with the app for some reason.

  22. Drayak335 commented on Aug 15, 2025

    @Drayak335

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/ change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

    I was able to use the utility with both this and the code sign solution by JollyJamma.

    To get it working: use these commands. cd MacUtil-Universal.app/Contents/MacOS/ (to the internal /contents/MacOS folder inside of the .app) chmod +x MacUtilGUI (Give permission to execute the .app) cd (back to location of the .app) codesign -s - --force --deep ./MacUtil-Universal.app (sign the .app)

    after this now I getting a popup with this error Apple could not verify “MacUtil-Universal” is free of malware that may harm your Mac or compromise your privacy." with options to click Done / Move to Trash.

    I am running an intel based Mac (not sure if it matters. Sequoia 15.6.

    Image

    Quick Update - I was able to run following this
    #28 (comment)

  23. dev-Blaze commented on Aug 31, 2025

    @dev-Blaze

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/ change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

    I was able to use the utility with both this and the code sign solution by JollyJamma.
    To get it working: use these commands. cd MacUtil-Universal.app/Contents/MacOS/ (to the internal /contents/MacOS folder inside of the .app) chmod +x MacUtilGUI (Give permission to execute the .app) cd (back to location of the .app) codesign -s - --force --deep ./MacUtil-Universal.app (sign the .app)

    after this now I getting a popup with this error Apple could not verify “MacUtil-Universal” is free of malware that may harm your Mac or compromise your privacy." with options to click Done / Move to Trash.

    I am running an intel based Mac (not sure if it matters. Sequoia 15.6.

    Image Quick Update - I was able to run following this [#28 (comment)](https://github.com//issues/28#issue-3276543129)

    Having the same issue on my end as well so this is not because its intel.

    Using M4 Pro on my end.

  24. Dattebayooooo commented on Sep 28, 2025

    @Dattebayooooo

    Go old school, clone & run it.
    Have installed .net 9

    Image Image
  25. Dattebayooooo commented on Sep 28, 2025

    @Dattebayooooo

    #24 (comment)

    This works for me,
    ran a extra line post that

    xattr -cr ./MacUtil-Universal.app

  26. raphaelsimsek commented on Sep 28, 2025

    @raphaelsimsek

    Have installed .net 9

    Thanks that helped getting it to run! Was close to just running the scripts from scripts/

  27. ovprc commented on Jan 27, 2026

    @ovprc

    Not a MacOS expert in the least. Able to get it to run if you extract the .zip, then cd MacUtil-Universal.app/Contents/MacOS/ change permissions on the MacUtilGUI file to execute (chmod +x MacUtilGUI), confirm with password in pop-up. then the app will run with the 'open ./MacUtil-Universal.app' command as instructed.

    I was able to use the utility with both this and the code sign solution by JollyJamma.
    To get it working: use these commands. cd MacUtil-Universal.app/Contents/MacOS/ (to the internal /contents/MacOS folder inside of the .app) chmod +x MacUtilGUI (Give permission to execute the .app) cd (back to location of the .app) codesign -s - --force --deep ./MacUtil-Universal.app (sign the .app)

    Can confirm THIS works on m1 Sonoma as well

    that helped on intel macbook with tahoe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions