vshaxe / hashlink-debugger

Visual Studio Code Debugger for Haxe/HashLink applications
https://hashlink.haxe.org/
MIT License
57 stars 23 forks source link

Your Hashlink executable is not properly codesigned #94

Closed grayaii closed 3 years ago

grayaii commented 3 years ago

I'm getting the following error when I try "Run->Run without Debugging" in VSCode.

Your Hashlink executable is not properly codesigned.
Run `make codesign_osx` during Hashlink installation.
Path: hl

I installed Hashlink by:

git clone https://github.com/HaxeFoundation/hashlink.git
cd hashlink/
brew bundle
make codesign_osx (enter password)
make
make install

The revision of hashlink that i've cloned is:

$ git rev-parse --verify HEAD
f33b3f88150e107e7f7e96917cde51246906d477

Kinda weird, that I get this error:

$ codesign -d --entitlements - /usr/local/bin/hl
/usr/local/bin/hl: code object is not signed at all
grayaii commented 3 years ago

Right after posting this, I re-ran those steps over and over, but codesign kept failing.

I completely removed it by make uninstall and re-running those steps and it worked.

I think I must have run make install initially, just to see if the compilation worked, and THEN ran make codesign_osx, followed by make install. Huh. Well, I'll close this out then.

rcstuber commented 3 years ago

From your original post it sounds like you ran make codesign_osx before running make, which is the wrong order.