macdylibbundler icon indicating copy to clipboard operation
macdylibbundler copied to clipboard

Processed app crashes

Open kakyoism opened this issue 5 years ago • 5 comments

New user here. My setup

  • macOS Mojave
  • Xcode 10.3
  • dylibbundler 0.4.1, installed from Homebrew

Tried , on my hello-world app built with GTK+:

dylibbundler -od -b -x hello_gtk_app.app/Contents/MacOS/hello_gtk_app -d hello_gtk_app.app/Contents/Resources/lib/ -p @executable_path/../Resources/lib/

The resulting app simply crashes. Before this, it runs fine on the dev machine. If I turn to run the executable inside the app bundle from Terminal, then I see

Killed: 9

Any ideas how I can fix this?

kakyoism avatar Aug 18 '19 13:08 kakyoism

Can you please run the app from a terminal and see if any additional information is logged?

auriamg avatar Aug 18 '19 21:08 auriamg

Can you please run the app from a terminal and see if any additional information is logged?

That's the problem. I did exactly that and what I got was, like I said above, Killed: 9 Note that the app runs normally BEFORE the dylib fix.

kakyoism avatar Aug 19 '19 04:08 kakyoism

I attached my Xcode project. Would you please take a look? To build it, you'll need:

brew install pygobject3 gtk+3

After that the Xcode project should build and run. This zip has the status before running the command

cd /path/to/<project_root>/build/Debug/
dylibbundler -od -b -x hello_gtk_app.app/Contents/MacOS/hello_gtk_app -d hello_gtk_app.app/Contents/Resources/lib/ -p @executable_path/../Resources/lib/

hello_gtk_app-without-dylibfix.zip

kakyoism avatar Aug 19 '19 04:08 kakyoism

Try lldb hello_gtk_app.app/Contents/MacOS/hello_gtk_app?

sclsj avatar Aug 15 '21 13:08 sclsj

Might have something to do with amfi because this might change code signature. Try using nvram variable nvram boot-args="amfi_get_out_of_my_way=0x1"

sclsj avatar Nov 21 '21 08:11 sclsj