How to Fix is damaged and can’t be opened on macOS

GeeXLab on macOS Big Sur

I received several feedbacks telling me that GeeXLab can’t be launched because macOS says it’s damaged. This morning I tested and indeed, macOS (Big Sur) displays the following message when you try to start GeeXLab (both ARM64 and Intel X86_64 versions): is damaged and can't be opened on macOS

Damaged??? Someone is lying here. I’m sure that GeeXLab is not damaged. macOS (and Apple!) wants you to destroy the planet with ultra consumerism. If something doesn’t work, just move it to the Bin and buy a new one. I’m sorry but there’s no future with such kind of OS!

That said, back to our problem. I found a simple way to fix this warning message using a command line utility called xattr.
Just open a terminal in GeeXLab folder and type:

xattr -cr ./

This command resets or removes all extended file attributes. Now you should be able to launch GeeXLab: is damaged and can't be opened on macOS

I told you that GeeXLab wasn’t damaged.

Don’t ask me why, I don’t know why those file attributes must be cleared. The original works perfectly on my mac Mini. To ship GeeXLab, I just compress the GeeXLab folder using macOS own zip utility and I upload the zip file on Geeks3D server. Nothing special here. I did these steps hundred of times since 2012 to ship GeeXLab but now, something has changed in macOS (or in Xcode?). Anyways, the fix is simple and that’s the important thing.

And according to this article (the source of the tips), this damaged error is rather common (see the comments section)…

4 thoughts on “How to Fix is damaged and can’t be opened on macOS”

  1. Steven

    This made it run, but it crashes! MacOS 12.1.

    Translated Report (Full Report Below)

    Process: GeeXLab [8814]
    Path: /Users/USER/Downloads/*/
    Identifier: Geeks3D.GeeXLab
    Version: 0.40 (1)
    Code Type: ARM-64 (Native)
    Parent Process: launchd [1]
    User ID: 501

    Date/Time: 2022-01-28 12:19:29.5189 -0800
    OS Version: macOS 12.1 (21C52)
    Report Version: 12
    Anonymous UUID: A3C347E9-4865-8FE2-A0D1-D6296158CE93

    Sleep/Wake UUID: 167AD09C-4017-4DBA-9558-2E0944FC4F57

    Time Awake Since Boot: 51000 seconds
    Time Since Wake: 36146 seconds

    System Integrity Protection: enabled

    Crashed Thread: 6

    Exception Type: EXC_BREAKPOINT (SIGTRAP)
    Exception Codes: 0x0000000000000001, 0x000000019c98059c
    Exception Note: EXC_CORPSE_NOTIFY

    Termination Reason: Namespace SIGNAL, Code 5 Trace/BPT trap: 5
    Terminating Process: exc handler [8814]

    Application Specific Information:
    -[NSOpenGLContext setView:] must be called from the main thread.

    Thread 0:: Dispatch queue:
    0 libsystem_kernel.dylib 0x1999e4ebc __semwait_signal + 8
    1 libsystem_c.dylib 0x1998efd88 nanosleep + 216
    2 libsystem_c.dylib 0x1998efca4 usleep + 68
    3 libgxc_r_osx.dylib 0x103cc68d8 0x103b88000 + 1304792
    4 libgxc_r_osx.dylib 0x103ccbae4 0x103b88000 + 1325796
    5 GeeXLab 0x102aac6c0 GXLAPP_Demo::run() + 4772
    6 GeeXLab 0x102ac8054 GXLAPP_Main_Demo_Run() + 72
    7 GeeXLab 0x102ac7bd0 GXLAPP_Start_Main_Demo_XML(char const*) + 316
    8 GeeXLab 0x102ac6a4c load_scene_file_xml(char const*) + 156
    9 GeeXLab 0x102ac67ac load_scene_file(char const*) + 144
    10 GeeXLab 0x102aa1f2c -[AppDelegate applicationDidFinishLaunching:] + 728
    11 CoreFoundation 0x199add200 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 28
    12 CoreFoundation 0x199b80b84 ___CFXRegistrationPost_block_invoke + 52
    13 CoreFoundation 0x199b80af0 _CFXRegistrationPost + 456
    14 CoreFoundation 0x199aabeb0 _CFXNotificationPost + 720
    15 Foundation 0x19a961e3c -[NSNotificationCenter postNotificationName:object:userInfo:] + 96
    16 AppKit 0x19c6459f0 -[NSApplication _postDidFinishNotification] + 340
    17 AppKit 0x19c645708 -[NSApplication _sendFinishLaunchingNotification] + 236
    18 AppKit 0x19c643108 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 580
    19 AppKit 0x19c642cf0 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 780
    20 Foundation 0x19a98e7c4 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 344
    21 Foundation 0x19a98e600 _NSAppleEventManagerGenericHandler + 96
    22 AE 0x1a027d75c 0x1a0271000 + 51036
    23 AE 0x1a027d0b4 0x1a0271000 + 49332
    24 AE 0x1a0275f84 aeProcessAppleEvent + 488
    25 HIToolbox 0x1a268a3b0 AEProcessAppleEvent + 68
    26 AppKit 0x19c63d0cc _DPSNextEvent + 1848
    27 AppKit 0x19c63b584 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1332
    28 AppKit 0x19c62d5a4 -[NSApplication run] + 596
    29 GeeXLab 0x102aa4df8 main + 6872
    30 dyld 0x102bf50f4 start + 520

Leave a Comment

Your email address will not be published. Required fields are marked *