Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processed app crashes #40

Open
kakyoism opened this issue Aug 18, 2019 · 5 comments
Open

Processed app crashes #40

kakyoism opened this issue Aug 18, 2019 · 5 comments

Comments

@kakyoism
Copy link

kakyoism commented Aug 18, 2019

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?

@auriamg
Copy link
Owner

auriamg commented Aug 18, 2019

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

@kakyoism
Copy link
Author

kakyoism commented Aug 19, 2019

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
Copy link
Author

kakyoism commented Aug 19, 2019

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

@sclsj
Copy link

sclsj commented Aug 15, 2021

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

@sclsj
Copy link

sclsj commented Nov 21, 2021

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants