Lutzifer / keyboardSwitcher

List, show and switch OSX Keyboard Layouts from the command line.
83 stars 10 forks source link

xcodebuild step fails (clang: error: linker command failed with exit code 1) #10

Closed ubmit closed 1 year ago

ubmit commented 1 year ago

I've tried to install using homebrew and I stumbled across this error during the build process:

==> Fetching lutzifer/tap/keyboardswitcher
==> Downloading https://github.com/Lutzifer/keyboardSwitcher/archive/1.0.2.tar.gz
Already downloaded: /Users/guilherme.de.andrade/Library/Caches/Homebrew/downloads/bcf0cf69ccb0648e13e7f337223cc8baacc9aa3d328eedc41892439eedd77bee--keyboardSwitcher-1.0.2.tar.gz
==> Installing keyboardswitcher from lutzifer/tap
==> xcodebuild
Last 15 lines from /Users/guilherme.de.andrade/Library/Logs/Homebrew/keyboardswitcher/01.xcodebuild:
Ld /tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/keyboardSwitcher.build/Release/keyboardSwitcher.build/Objects-normal/x86_64/Binary/keyboardSwitcher normal x86_64 (in target 'keyboardSwitcher' from project 'keyboardSwitcher')
    cd /tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -Xlinker -reproducible -target x86_64-apple-macos10.10 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -L/tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/EagerLinkingTBDs/Release -L/tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/Release -F/tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/EagerLinkingTBDs/Release -F/tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/Release -filelist /tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/keyboardSwitcher.build/Release/keyboardSwitcher.build/Objects-normal/x86_64/keyboardSwitcher.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/../Frameworks -Xlinker -rpath -Xlinker @loader_path/../Frameworks -Xlinker -object_path_lto -Xlinker /tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/keyboardSwitcher.build/Release/keyboardSwitcher.build/Objects-normal/x86_64/keyboardSwitcher_lto.o -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/keyboardSwitcher.build/Release/keyboardSwitcher.build/Objects-normal/x86_64/keyboardSwitcher.swiftmodule -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/keyboardSwitcher.build/Release/keyboardSwitcher.build/Objects-normal/x86_64/keyboardSwitcher_dependency_info.dat -o /tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/keyboardSwitcher.build/Release/keyboardSwitcher.build/Objects-normal/x86_64/Binary/keyboardSwitcher
ld: file not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_macosx.a
clang: error: linker command failed with exit code 1 (use -v to see invocation)

/tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/keyboardSwitcher.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.10, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'keyboardSwitcher' from project 'keyboardSwitcher')
warning: Run script build phase 'Swiftlint' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'keyboardSwitcher' from project 'keyboardSwitcher')
warning: Run script build phase 'Swimat' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'keyboardSwitcher' from project 'keyboardSwitcher')
** BUILD FAILED **

The following build commands failed:
    Ld /tmp/keyboardswitcher-20230731-33322-1dp18s5/keyboardSwitcher-1.0.2/build/keyboardSwitcher.build/Release/keyboardSwitcher.build/Objects-normal/x86_64/Binary/keyboardSwitcher normal x86_64 (in target 'keyboardSwitcher' from project 'keyboardSwitcher')
(1 failure)

If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
  https://github.com/lutzifer/homebrew-tap/issues

I'm running macOS Ventura 13.3.1 (a) and here is my Xcode details:

/usr/bin/xcodebuild -version
Xcode 14.3.1
Build version 14E300c
Lutzifer commented 1 year ago

fixed in Release 1.0.3