===> Installing for ruby31-ferret-0.11.8.7nb1
=> Generating pre-install file lists
=> Installing gem into installation root
Building native extensions. This could take a while...
ERROR:  Error installing /Users/pbulk/build/textproc/ruby-ferret/work/ferret-0.11.8.7/ferret-0.11.8.7.gem:
	ERROR: Failed to build gem native extension.

    current directory: /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7/ext
/opt/pkg/bin/ruby31 -I /opt/pkg/lib/ruby/3.1.0 extconf.rb
creating Makefile

current directory: /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7/ext
make DESTDIR\= sitearchdir\=./.gem.20250516-84213-gxvuqr sitelibdir\=./.gem.20250516-84213-gxvuqr clean

current directory: /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7/ext
make DESTDIR\= sitearchdir\=./.gem.20250516-84213-gxvuqr sitelibdir\=./.gem.20250516-84213-gxvuqr
compiling BZLIB_blocksort.c
Error loading required libraries. If there is an ongoing installation please wait for it to complete. Otherwise reinstall. (dlopen(@rpath/libxcodebuildLoader.dylib, 0x0001): Library not loaded: /System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
  Referenced from: <A3240D6D-3992-3DF1-A931-A4A52949CF7B> /System/Volumes/Data/Applications/Xcode-13.4.1.app/Contents/SharedFrameworks/DVTPortal.framework/Versions/A/DVTPortal
  Reason: tried: '/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice' (no such file), '/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice' (no such file, not in dyld cache), '/Library/Frameworks/MobileDevice.framework/Versions/A/MobileDevice' (no such file), '/System/Library/Frameworks/MobileDevice.framework/Versions/A/MobileDevice' (no such file, not in dyld cache))
clang: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
clang: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch
*** Error code 71

Stop.
make: stopped making "all" in /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7/ext

make failed, exit code 1

Gem files will remain installed in /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/gems/ferret-0.11.8.7 for inspection.
Results logged to /Users/pbulk/build/textproc/ruby-ferret/work/.inst/opt/pkg/lib/ruby/gems/3.1.0/extensions/arm64-darwin-23/3.1.0/ferret-0.11.8.7/gem_make.out
*** Error code 1

Stop.
bmake[1]: stopped making "stage-install" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/textproc/ruby-ferret
*** Error code 1

Stop.
bmake: stopped making "stage-install" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/textproc/ruby-ferret