❯ brew config ─╯
HOMEBREW_VERSION: 7.0.7-23-g9763df7
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CURL_RETRIES: 5
HOMEBREW_NO_ENV_HINTS: set
Homebrew Ruby: 4.0.7 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/4.0.7/bin/ruby
CPU: deca-core 64-bit arm_donan
Clang: 21.0.0 build 2100
Git: 2.55.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 27.2-arm64
CLT: 27.0.0.0.1788430756
Xcode: 27.0
Metal Toolchain: N/A
Rosetta 2: false
brew install --build-from-source xcodegen ─╯
==> Would install 1 formula:
xcodegen 2.46.0
==> Fetching downloads for: xcodegen
✔︎ API Source xcodegen.rb Verified 2.2KB/ 2.2KB
✔︎ Formula xcodegen (2.46.0) Verified 1.6MB/ 1.6MB
==> swift package resolve --disable-sandbox
==> swift build --disable-sandbox --configuration release --jobs 10
Last 15 lines from /Users/songhoujin/Library/Logs/Homebrew/xcodegen/01.swift.log:
[111 / 231] XcodeGen_XcodeGenKit
[113 / 231] XcodeGen_XcodeGenKit
[113 / 231]
[124 / 239] Rainbow
[138 / 252] PathKit
[141 / 252]
[143 / 252]
[146 / 252] CYaml
[147 / 252] CYaml
[148 / 252] CYaml
[148 / 252] SwiftCLI
error: /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/checkouts/Spectre/Sources/Spectre/XCTest.swift:1:8 unable to resolve module dependency: 'XCTest'
error: SwiftDriver Spectre normal arm64 com.apple.xcode.tools.swift.compiler failed with a nonzero exit code. Command line: cd /private/tmp/xcodegen-20260929-84798-e8fty3
builtin-SwiftDriver -- /Library/Developer/CommandLineTools/usr/bin/swiftc -parse-as-library -module-name Spectre -O -whole-module-optimization @/private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/Spectre.build/Release/Spectre-t.build/Objects-normal/arm64/Spectre.SwiftFileList -DSWIFT_PACKAGE -DSWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -DXcode -enable-experimental-feature DebugDescriptionMacro -sdk /Library/Developer/CommandLineTools/SDKs/MacOSX27.0.sdk -target arm64-apple-macos12.0 -g -module-cache-path /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/ModuleCache.noindex -Xfrontend -serialize-debugging-options -disable-sandbox -suppress-warnings -swift-version 5 -I /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Products/Release -Isystem /Library/Developer/CommandLineTools/Developer/usr/lib -F /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Products/Release -F /Library/Developer/CommandLineTools/Library/Developer/Frameworks -F /Library/Developer/CommandLineTools/Developer/Library/Frameworks -c -num-threads 10 -Xcc -ivfsstatcache -Xcc /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/SDKStatCaches.noindex/macosx27.0-26A425-a0facfad118c1a7a18f0aad9463f6549ffd68ff603bdaacc80b00cb8898de72d.sdkstatcache -output-file-map /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/Spectre.build/Release/Spectre-t.build/Objects-normal/arm64/Spectre-OutputFileMap.json -save-temps -color-diagnostics -explicit-module-build -module-cache-path /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/SwiftExplicitPrecompiledModules -clang-scanner-module-cache-path /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/ModuleCache.noindex -sdk-module-cache-path /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/SDKExplicitPrecompiledModules -emit-dependencies -emit-module -emit-module-path /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/Spectre.build/Release/Spectre-t.build/Objects-normal/arm64/Spectre.swiftmodule -serialize-diagnostics -dependency-scan-serialize-diagnostics-path /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/Spectre.build/Release/Spectre-t.build/Objects-normal/arm64/Spectre-dependency-scan.dia -validate-clang-modules-once -clang-build-session-file /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/ModuleCache.noindex/Session.modulevalidation -Xcc -fmodules-prune-interval\=86400 -Xcc -fmodules-prune-after\=345600 -emit-const-values -const-gather-protocols-list /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/Spectre.build/Release/Spectre-t.build/Objects-normal/arm64/Spectre_const_extract_protocols.json -Xcc -I/private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Products/Release/include -Xcc -I/private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/Spectre.build/Release/Spectre-t.build/DerivedSources-normal/arm64 -Xcc -I/private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/Spectre.build/Release/Spectre-t.build/DerivedSources/arm64 -Xcc -I/private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/Spectre.build/Release/Spectre-t.build/DerivedSources -Xcc -DSWIFT_PACKAGE -emit-objc-header -emit-objc-header-path /private/tmp/xcodegen-20260929-84798-e8fty3/XcodeGen-2.46.0/.build/out/Intermediates.noindex/Spectre.build/Release/Spectre-t.build/Objects-normal/arm64/Spectre-Swift.h -working-directory /private/tmp/xcodegen-20260929-84798-e8fty3 -no-emit-module-separately-wmo
error: Build failed
READ THIS: https://docs.brew.sh/Troubleshooting