emacs-osx icon indicating copy to clipboard operation
emacs-osx copied to clipboard

installation fails with codesign command not found

Open gsood-gaurav opened this issue 4 years ago • 3 comments

I executed the following command on my Mac m1

nix-env -iA emacsOsxNative -f https://github.com/sagittaros/emacs-osx/archive/refs/tags/built.tar.gz

But the build fails with following error " /nix/store/nqld6s67abqzkdy90rkgz5bqbpsfcy8s-apple-framework-CoreText-11.0.0/Library/Frameworks/CoreText.framework/Headers/CoreText.h:61:10: note: 'CTGetCoreTextVersion' has been explicitly marked deprecated here uint32_t CTGetCoreTextVersion( void ) CT_DEPRECATED("Use -[NSProcessInfo operatingSystemVersion]", macos(10.5, 11.0), ios(3.2, 14.0), watchos(2.0, 7.0), tvos(9.0, 14.0)); ^ 1 warning generated. CCLD temacs codesign -s - -f temacs.tmp /nix/store/igfm90d0b7nij5xi1hgr63sdk4fkzjng-bash-4.4-p23/bin/bash: codesign: command not found make[1]: *** [Makefile:644: temacs] Error 127 make[1]: Leaving directory '/private/tmp/nix-build-emacs-osx-20210925.0.drv-0/source/src' make: *** [Makefile:443: src] Error 2 builder for '/nix/store/wg16g72vkicijfwqqcn5g6gpaw1bb2lw-emacs-osx-20210925.0.drv' failed with exit code 2 error: build of '/nix/store/wg16g72vkicijfwqqcn5g6gpaw1bb2lw-emacs-osx-20210925.0.drv' failed "

gsood-gaurav avatar Sep 27 '21 12:09 gsood-gaurav

@gsood-gaurav, looking at the error at this line:

/nix/store/igfm90d0b7nij5xi1hgr63sdk4fkzjng-bash-4.4-p23/bin/bash: codesign: command not found

It seems that there is something wrong with your XCode or Keychain, do you have XCode installed?

Just tested the same command and it works for me:

Screenshot 2021-09-29 at 11 45 56 AM

inscapist avatar Sep 29 '21 03:09 inscapist

Yes Xcode is installed. I installed from App Store. I don't know how to check from keychain

gsood-gaurav avatar Sep 29 '21 09:09 gsood-gaurav

Can you try this suggestion here?

If not, I will have to try coming up with a patch, but unfortunately I am overwhelmed lately

inscapist avatar Sep 29 '21 13:09 inscapist