mmstick / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
615 stars 50 forks source link

error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: unrecognized option: --strip-unneeded #81

Closed happysalada closed 6 years ago

happysalada commented 6 years ago

running cargo deb --install on the alacritty project (https://github.com/jwilm/alacritty) I get the following error

Finished release [optimized + debuginfo] target(s) in 0.51s
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: unrecognized option: --strip-unneeded
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip [-AnuSXx] [-] [-d filename] [-s filename] [-R filename] [-o output] file [...]
cargo-deb: Command strip failed to launch
  because: exit code: 1

I'm running macOs Sierra 10.12.16, using asdf to manage my rust versions. I am using rust 1.30.0 and cargo deb 1.14.0

kornelski commented 6 years ago

cargo deb --install is for installing Debian packages on Debian-based Linux only, and doesn't make sense on macOS.

happysalada commented 6 years ago

lol, my bad