USB-SD Creator error in MacOS Catalina

  • Hi,


    Every time I try to start USB-SD Creator in Catalina get the next error:


    PasteBoard: Error creating pasteboard: com.apple.pasteboard.clipboard [-4960]

    PasteBoard: Error creating pasteboard: com.apple.pasteboard.find [-4960]

    2020-02-07 11:41:35.196 LibreELEC USB-SD Creator[96872:821562] The application with bundle ID com.apple.ScriptEditor.id.LibreELEC is running setugid(), which is not allowed. Exiting.


    Any help?


    Thanks!

  • Code
    sudo dd if=LibreELEC-RPi4.arm.img of=/dev/diskX bs=1m

    ^ the low-tech method for macOS and Linux


    I need to blow the dust off the VM that I have used to replicate building the creator app and if I can persuade someone with a clue about macOS and Qt development to poke the code. I can't promise a quick fix :)

  • Does this error help?


    Code
    [email protected]:~/Downloads/LibreELEC USB-SD Creator.app/Contents/MacOS $ sudo ./LibreELEC\ USB-SD\ Creator 
    Password:
    2020-08-16 10:22:12.052 LibreELEC USB-SD Creator[63762:3818003] The application with bundle ID com.apple.ScriptEditor.id.LibreELEC is running setugid(), which is not allowed. Exiting.

    This is in the Terminal. I cd to LibreELEC USB-SD Creator.app/Contents/MacOS and try to run it from there.


    So perhaps setguid has been disable even for root in macos?

  • For those who happened to be here looking for a solution to install from OSX (Catalina in my case), here is a guide that worked: Installation [LibreELEC.wiki]

    Hi! Thanks for the guide, but I can´t follow it. I tried to find the file you mention (LibreELEC-build-architecture-version.img.gz), but unsuccessfully. I asked Finder to "Show Package Contents", and look into all folders, but nothing. Where is it?

  • Same problem here. Until there's a fix, the workaround is


    • Download and unzip the .img.gz
    Code
    $ gunzip LibreELEC-RPi2.arm-9.2.6.img.gz
    • Erase the SD card via Disk Utility as MS FAT (MBR)
    • Confirm which disk it is, in my case, /dev/disk2
    Code
    $ diskutil list
    <snip>
    
    /dev/disk2 (internal, physical):
    #:                       TYPE NAME                    SIZE       IDENTIFIER
    0:     FDisk_partition_scheme                        *32.0 GB    disk2
    1:                 DOS_FAT_32 ⁨32G⁩                     32.0 GB    disk2s1


    • Unmount via diskutil so you don't get a Resource Busy error (doing it via UI did not work for me as CLI would not see the SD anymore)


    Code
    $ sudo diskutil unmountDisk /dev/disk2
    Unmount of all volumes on disk2 was successful


    • Copy the image to SD using dd


    Code
    $ sudo dd if=LibreELEC-RPi2.arm-9.2.6.img of=/dev/disk2 bs=1m
    549+0 records in
    549+0 records out
    575668224 bytes transferred in 168.306795 secs (3420350 bytes/sec)


    That should do it.

  • For those who happened to be here looking for a solution to install from OSX (Catalina in my case), here is a guide that worked: Installation [LibreELEC.wiki]

    That guide does not work for macos Catalina 10.15.7 (19H524)


    It is not possible to launch the app.


    I tried to run it on the command line, with and without sudo. It seems to want to run setgid at some point, which macos does not like. Shades of Windows 8.


    This


    $ /Applications/LibreELEC\ USB-SD\ Creator.app/Contents/MacOS/applet


    causes a pop-up to ask for an admin user's password


    Then there appears a pop-up window from the LibreElec app containing (and an Edit button):


    Code
    PasteBoard: Error creating pasteboard: com.apple.pasteboard.clipboard [-4960]
    PasteBoard: Error creating pasteboard: com.apple.pasteboard.find [-4960]
    2021-02-27 16:30:20.729 LibreELEC USB-SD Creator[40871:5505930] The application with bundle ID com.apple.ScriptEditor.id.LibreELEC is running setugid(), which is not allowed. Exiting. (1)


    Clicking on Edit launches the macos Script Editor with this:


    -- https://discussions.apple.com/message/23355413#23355413

    -- https://discussions.apple.com/thread/133512?start=0&tstart=0


    set myPath to POSIX path of (path to me as text) -- gets it in "/" form

    set ASTID to AppleScript's text item delimiters -- save 'em

    set AppleScript's text item delimiters to "/"

    set theFolder to (text 1 thru text item -2 of myPath) & "/" as Unicode text

    set AppleScript's text item delimiters to ASTID -- restore 'em

    set execpath to theFolder & "Contents/MacOS/LibreELEC USB-SD Creator"

    set quotedexec to quoted form of execpath

    do shell script "sudo " & quotedexec with administrator privileges


    So I suppose it is the last line that causes the problems.

  • The DMG is unhappy, but I can force it to open



    But, the app seems to be corrupted in some way


    I'll try the "low-tech" way

  • There is nothing wrong with the app, only the untrusted signature. It seems there is no alternative to paying for the Apple developer account so the image can be signed with a trusted cert.

  • Code
    sudo dd if=LibreELEC-RPi4.arm.img of=/dev/diskX bs=1m

    This didn't worked

    I tried using "Raspberry Imager" and it worked like a charm!

    Clean UI