Running cubit in batch mode under macOS

Coreform Cubit Version: * 2021.11*
Platform: macOS 15.1, M1 processor

Issue
*I am trying to run cubit in batch mode. Previously, /Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/Coreform-Cubit-2021.11 -nog would have worked, but now I get the following error message:

SiMini :cubit $ /Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/Coreform-Cubit-2021.11 -nog

dyld[87304]: Library not loaded: @rpath/libresolv.9.dylib

Referenced from: /Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/libcurl.4.dylib

Reason: tried: ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/./libresolv.9.dylib’ (code signature invalid (errno=1) sliceOffset=0x00001000, codeBlobOffset=0x0001EBF0, codeBlobSize=0x00002810 for ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/libresolv.9.dylib’), ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/…/Frameworks/libresolv.9.dylib’ (no such file), ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/libresolv.9.dylib’ (code signature invalid (errno=1) sliceOffset=0x00001000, codeBlobOffset=0x0001EBF0, codeBlobSize=0x00002810 for ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/libresolv.9.dylib’), ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/./libresolv.9.dylib’ (code signature invalid (errno=1) sliceOffset=0x00001000, codeBlobOffset=0x0001EBF0, codeBlobSize=0x00002810 for ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/libresolv.9.dylib’), ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/…/Frameworks/libresolv.9.dylib’ (no such file), ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/libresolv.9.dylib’ (code signature invalid (errno=1) sliceOffset=0x00001000, codeBlobOffset=0x0001EBF0, codeBlobSize=0x00002810 for ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/libresolv.9.dylib’), ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/libresolv.9.dylib’ (code signature invalid (errno=1) sliceOffset=0x00001000, codeBlobOffset=0x0001EBF0, codeBlobSize=0x00002810 for ‘/Applications/Coreform-Cubit-2021.11.app/Contents/MacOS/libresolv.9.dylib’)

Abort trap: 6

I have added /Applications/Coreform-Cubit-2021.11.app/Contents/MacOS (where libresolv is located) to DYLD_FALLBACK_LIBRARY_PATH so I don’t see why it is not found. Running the from the gui works fine, but it is typically not the way I use cubit. *

Thanks for raising this issue. Unfortunately we were not able to reproduce this on our M1 machine running (11.4). Could you verify the following:

  1. What is the actual version of OSX that you are running (can be found by running sw_vers)? You indicated 15.1, but the latest version released is 12 Monterey.
  2. Did you download Cubit 2021.11 from the release section or from the development builds? If from the development builds what was the exact name of the dmg? This can help us identify if it is a specific machine in our build chain that is introducing the problem.

Hi,

Sorry, I got my version numbver switched. It is 12.1 (monterey).
I have installed the latest stable version Coreform-Cubit-2021.11+21637_35609873-Mac64.dmg

@blaisebourdin, we have not been able to reproduce this on 12.1 either. We’ll need to do some further debugging here. Do you by any chance have the xcode command line tools installed? E.g., via xcode-select --install?

Yes, I do have the Xcode command line tool installed.

@blaisebourdin there’s been some related worked done on OSX packaging that is likely to resolve this issue. Can you try Coreform-Cubit-2021.11-rc+23162_e88682e2-Mac64.dmg or the most recent development package and let us know if it resolves this issue?