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))
flex: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly!
flex: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch
=> Checksum BLAKE2s OK for u-boot-2024.04.tar.bz2
=> Checksum SHA512 OK for u-boot-2024.04.tar.bz2
===> Installing dependencies for u-boot-hifive-unleashed-2024.04
==========================================================================
The following variables will affect the build process of this package,
u-boot-hifive-unleashed-2024.04.  Their current value is shown below:

        * PYTHON_VERSION_DEFAULT = 312

Based on these variables, the following variables have been set:

        * PYPACKAGE = python312

You may want to abort the process now with CTRL-C and change the value
of variables in the first group before continuing.  Be sure to run
`/opt/pkg/bin/bmake clean' after the changes.
==========================================================================
=> Tool dependency cross-riscv64-none-elf-gcc-[0-9]*: found cross-riscv64-none-elf-gcc-13.2.0nb1
=> Tool dependency dtc>=1.4.2: found dtc-1.7.2
=> Tool dependency swig3>=3.0.12: found swig3-3.0.12nb5
=> Tool dependency py312-setuptools-[0-9]*: found py312-setuptools-80.4.0
=> Tool dependency bison>=1.0: found bison-3.8.2nb1
=> Tool dependency flex>=2.5.4a: NOT found
=> Verifying /nonexistent for ../../devel/flex
bmake[1]: don't know how to make /nonexistent. Stop

bmake[1]: stopped making "/nonexistent" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/devel/flex
*** Error code 2

Stop.
bmake: stopped making "configure" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/sysutils/u-boot-hifive-unleashed