julienXX / terminal-notifier

Send User Notifications on macOS from the command-line.
Other
6.37k stars 330 forks source link

can not install terminal notifier. #236

Closed arefaslani closed 6 years ago

arefaslani commented 6 years ago

I'm using macOS High Sierra. When I want to install terminal notifier through brew install terminal-notifier, it throws an error.

→ brew install terminal-notifier
Updating Homebrew...
==> Downloading https://github.com/julienXX/terminal-notifier/archive/2.0.0.tar.gz
Already downloaded: /Users/arefaslani/Library/Caches/Homebrew/terminal-notifier-2.0.0.tar.gz
==> xcodebuild -project Terminal Notifier.xcodeproj -target terminal-notifier SYMROOT=build -verbose CODE_SIGN_IDENTITY=
Last 15 lines from /Users/arefaslani/Library/Logs/Homebrew/terminal-notifier/01.xcodebuild:
    13  IDEFoundation                       0x000000010a042cca _IDEInitializePlugIns + 1604
    14  IDEFoundation                       0x000000010a042081 IDEInitialize + 8547
    15  ibtoold                             0x00000001089ba5a9 ibtoold + 71081
    16  ibtoold                             0x00000001089b9724 ibtoold + 67364
    17  libdyld.dylib                       0x00007fff55da0145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Command /Applications/Xcode.app/Contents/Developer/usr/bin/ibtool failed with exit code 6. The tool may have crashed. Please file a bug report at http://bugreport.apple.com with the above output and attach any crash logs for ibtool, ibtoold, Xcode, and Interface Builder Cocoa Touch Tool created around the time of this failure. These logs can be found in ~/Library/Logs/DiagnosticReports or /Library/Logs/DiagnosticReports.

** BUILD FAILED **

The following build commands failed:
    CompileXIB Terminal\ Notifier/en.lproj/MainMenu.xib
(1 failure)

READ THIS: https://docs.brew.sh/Troubleshooting.html
arefaslani commented 6 years ago

I've installed it through ruby gem (gem install terminal-notifier) and it works, but it shows a warning:

Notice: Your terminal-notifier is older than what terminal-notifier-guard supports, consider upgrading.
julienXX commented 6 years ago

@arefaslani could it be that your XCode was not up to date and command line tools not installed?

thecontinium commented 6 years ago

I had this problem. I stated Xcode and it asked me to install additional components. After this brew worked.

julienXX commented 6 years ago

Hi @arefaslani do you still have this issue?

arefaslani commented 6 years ago

@julienXX Hi julien. Sorry for not closing the issue. No I don't have this issue anymore. I think It was because of not installing XCode command line tools properly.