Failed to install
jmenan opened this issue · 9 comments
Hello,
i have this error when i try to install it with brew :
MacOS Catalina version 10.15.7 (19H2)
❯ brew install yulrizka/tap/pushtotalk
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/cask).
==> Updated Casks
macpilot
==> Installing pushtotalk from yulrizka/tap
==> Downloading https://github.com/yulrizka/osx-push-to-talk/archive/v0.1.5.tar.gz
Already downloaded: /Users/jmenan/Library/Caches/Homebrew/downloads/1a5ea18d0cc9c93bae9a5b6ea97a1603913bf305b9fc0560c8365826391c3921--osx-push-to-talk-0.1.5.tar.gz
==> xcodebuild -project PushToTalk.xcodeproj CODE_SIGN_IDENTITY=- -configuration Release SYMROOT=build
Last 15 lines from /Users/jmenan/Library/Logs/Homebrew/pushtotalk/01.xcodebuild:
15 ibtoold 0x0000000106b8ede5 IBIDEInitialize + 52
16 ibtoold 0x0000000106b8dfdf main + 1622
17 libdyld.dylib 0x00007fff6baf6cc9 start + 1
18 ??? 0x0000000000000015 0x0 + 21
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Command CompileXIB failed with a nonzero exit code
** BUILD FAILED **
The following build commands failed:
CompileAssetCatalog /tmp/pushtotalk-20201103-24209-3s0kkl/osx-push-to-talk-0.1.5/build/Release/PushToTalk.app/Contents/Resources /tmp/pushtotalk-20201103-24209-3s0kkl/osx-push-to-talk-0.1.5/PushToTalk/Images.xcassets
CompileXIB /tmp/pushtotalk-20201103-24209-3s0kkl/osx-push-to-talk-0.1.5/PushToTalk/Base.lproj/MainMenu.xib
(2 failures)
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/yulrizka/homebrew-tap/issues
Hi, could you report the version of your xcodebuild
? eg
$ xcodebuild -version
I have the same error on MacOS Catalina version 10.15.7 (19H2) as well. My xcodebuild
version is:
$ xcodebuild -version
Xcode 12.1
Build version 12A7403
Sorry for my late answer, my xcodebuild is the same version like Daanvm
❯ xcodebuild -version Xcode 12.1 Build version 12A7403
Unfortunately I could not reproduce even with the same version
❯ xcodebuild -version
Xcode 12.1
Build version 12A7403
~/dev/go/rumah master
❯ brew install yulrizka/tap/pushtotalk
==> Installing pushtotalk from yulrizka/tap
==> Downloading https://github.com/yulrizka/osx-push-to-talk/archive/v0.1.5.tar.gz
Already downloaded: /Users/ahmy.yulrizka/Library/Caches/Homebrew/downloads/1a5ea18d0cc9c93bae9a5b6ea97a1603913bf305b9fc0560c8365826391c3921--osx-push-to-talk-0.1.5.tar.gz
Warning: Your Xcode (12.1) is outdated.
Please update to Xcode 12.2 (or delete it).
Xcode can be updated from the App Store.
==> xcodebuild -project PushToTalk.xcodeproj CODE_SIGN_IDENTITY=- -configuration Release SYMROOT=buil
==> Caveats
The application was only built in "/usr/local/opt/pushtotalk/PushToTalk.app"
To make it available in the Application folder, create a symlink with:
ln -s "/usr/local/opt/pushtotalk/PushToTalk.app" "/Applications/PushToTalk.app"
==> Summary
🍺 /usr/local/Cellar/pushtotalk/0.1.5: 31 files, 12.3MB, built in 16 seconds
Could you maybe try manually
$ git clone git@github.com:yulrizka/osx-push-to-talk.git
$ cd osx-push-to-talk
$ xcodebuild -target "PushToTalk" -configuration Release
It also fails when I run it manually, but with a lot more output: https://gist.github.com/Daanvm/8cd84d0bbdb714e312cb57f19b438b07
Let me know if you want me to try anything else and thanks for the help so far!
Update: I got it to work (both the manual build and the brew install
) by opening the Xcode app once. It did install additional required components, so I guess these were missing.
I already had the xcode command line tools installed, so it was something else. Not sure if this is something that can be downloaded from the CLI so you can add it to your build steps?
That fix works for me. Managed to build a universal binary on an M1 MBP after installing the "additional components".
This was also needed for me