Hi!,
Did you experienced failure of xcodebuild tool in Xcode 16? I can't build from command line. It fails when I am trying to perform clean, build, test, etc. actions.
macOS version: 14.7 (23H124)
Xcode 16.0, Build version 16A242d
My steps:
sudo xcode-select -s /Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app
xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS
As result showBuildSettings is working as expected when using Xcode 15.4.
Command line invocation:
/Volumes/Apps/Developer/Xcode/Xcode_15_4_0.app/Contents/Developer/usr/bin/xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
Build settings for action build and target Testability_macOS:
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = YES
AGGREGATE_TRACKED_DOMAINS = YES
ALLOW_TARGET_PLATFORM_SPECIALIZATION = NO
ALTERNATE_GROUP = staff
...
Then:
sudo xcode-select -s /Volumes/Apps/Developer/Xcode/Xcode_16_0_0.app
xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS
As result error:
Command line invocation:
/Volumes/Apps/Developer/Xcode/Xcode_16_0_0.app/Contents/Developer/usr/bin/xcodebuild -showBuildSettings -workspace mc.xcworkspace -scheme AllNormalTests_macOS
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES
** INTERNAL ERROR: Uncaught exception **
Uncaught Exception: -[NSTaggedPointerString unsignedIntegerValue]: unrecognized selector sent to instance 0xbe036b67f7528701
Stack:
0 __exceptionPreprocess (in CoreFoundation)
1 objc_exception_throw (in libobjc.A.dylib)
2 -[NSObject(NSObject) __retain_OA] (in CoreFoundation)
3 ___forwarding___ (in CoreFoundation)
4 _CF_forwarding_prep_0 (in CoreFoundation)
5 -[DVTDeviceManager _startObservingDevice:] (in DVTFoundation)
6 -[DVTDeviceManager _adjustAvailableDevicesForChangeKind:addedObjects:removedObjects:] (in DVTFoundation)
7 __42-[_DVTDeviceLocatorTracker startObserving]_block_invoke (in DVTFoundation)
8 -[DVTObservingBlockToken observeValueForKeyPath:ofObject:change:context:] (in DVTFoundation)
9 NSKeyValueNotifyObserver (in Foundation)
10 NSKeyValueDidChange (in Foundation)
11 NSKeyValueDidChangeWithPerThreadPendingNotifications (in Foundation)
12 __62-[DVTiPhoneSimulatorLocator _startLocatingDevicesInDeviceSet:]_block_invoke_2 (in IDEiOSSupportCore)
13 __DVT_CALLING_CLIENT_BLOCK__ (in DVTFoundation)
14 ___DVTAsyncPerformBlockOnMainRunLoop_block_invoke (in DVTFoundation)
15 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation)
16 __CFRunLoopDoBlocks (in CoreFoundation)
17 __CFRunLoopRun (in CoreFoundation)
18 CFRunLoopRunSpecific (in CoreFoundation)
19 +[DVTKVOConditionValidator waitForCondition:sourceObject:keyPathAffectingConditionBlock:timeout:] (in DVTFoundation)
20 -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
21 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
22 XcodeBuildMain (in libxcodebuildLoader.dylib)
23 -[XcodebuildPreIDEHandler loadXcode3ProjectSupportAndRunXcode3CommandLineBuildToolWithArguments:] (in xcodebuild)
24 -[XcodebuildPreIDEHandler runWithArguments:] (in xcodebuild)
25 main (in xcodebuild)
26 start (in dyld)
Abort trap: 6
Simple commands as shown below are working, but not typical build actions.
xcodebuild -h
xcodebuild -version
xcodebuild -showsdks
Thank you in advance!