Skip to content

Crash when using nested function inside an actor #80772

Closed
@justinhporter

Description

@justinhporter

Description

The compiler is crashing when when using a nested function in a function on an actor. This is a new crash in Xcode 16.3, it is working on 16.2. Targeting Swift 5.

Reproduction

actor TestActor {
    func test() {
        func nested() -> String {
            return "test"
        }

        print(nested())
    }
}

Stack dump

Stack dump:
0.	Program arguments: /Applications/Xcode_16.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/justinporter/git/ambient/Installer2/InstallerUI/Common/Image+InstallerExtensions.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/FacilityReference.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/ZigbeeMessage.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceInclusion/ZigbeeInclusionViewModel.swift /Users/justinporter/git/ambient/Installer2/Installer/Helpers/NestHelper.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Hub/HubViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Common/NSNumber+Formatting.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/LogViewer.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Unit/HubOverviewView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/LightDetailsView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/ZigbeeDeviceViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/SignInFlow/SignInEmailView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Stargate/AddBridgeViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/SignInFlow/SignInStarterView.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/ZigbeeDeviceInfo.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/LockTestErrorView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceInclusion/S2SecurityCodeView.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/InstallerUser.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/CommunityView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/RouterView.swift /Users/justinporter/git/ambient/Installer2/Installer/Stargate/StargateController.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Hub/AssignHubViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/CommunityAboutView.swift /Users/justinporter/git/ambient/Installer2/Installer/Stargate/IPCDecodable.swift /Users/justinporter/git/ambient/Installer2/Installer/Stargate/StargateModel.swift /Users/justinporter/git/ambient/Installer2/Installer/Stargate/StargateScanner.swift /Users/justinporter/git/ambient/Installer2/Installer/Stargate/Device+Extensions.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/CommunityChangeView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/InvalidDeviceDetailsView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/DeviceViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Hub/RemoveHubConfirmationView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/CommunitiesView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/DeviceLocationView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Unit/BridgeOverviewViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/ThermostatDetailsView.swift /Users/justinporter/git/ambient/Installer2/Installer/Stargate/IPCMessageProcessor.swift /Users/justinporter/git/ambient/Installer2/Installer/Services/InclusionTimer.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/QRCode/ScanQRCodeView.swift /Users/justinporter/git/ambient/Installer2/Installer/Stargate/MainStargateController.swift /Users/justinporter/git/ambient/Installer2/Installer/Services/FeatureFlagService.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/StargateInfo.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/SearchUnitsView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceInclusion/InclusionViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Hub/RemoveHubView.swift /Users/justinporter/git/ambient/Installer2/Installer/Services/StargateService.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Common/AccountInfoDrawer.swift /Users/justinporter/git/ambient/Installer2/Installer/InstallerApp.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/UnitsFilterControl.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Common/LocationSelector.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/LockDetailsView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceExclusion/ExclusionViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/CommunitySearchView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/WiFiDevices/ManageWifiDeviceView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Unit/HubOverviewViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceExclusion/DeviceExclusionView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/WiFiDevices/WifiDeviceLocationView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Common/View+Extensions.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/Device.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/PreviewData.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/WiFiDevices/InstallDoorbellViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/DeviceDetailsView.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/Entrance.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Common/Switch.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/InstallerMigrationPlan.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceInclusion/ZigbeeDeviceInclusionView.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/EmailValidator.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/SensorDetailsView.swift /Users/justinporter/git/ambient/Installer2/Installer/InstallerFeatureFlagsSource.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Unit/UnitView.swift /Users/justinporter/git/ambient/Installer2/Installer/Services/ObservabilityService.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceInclusion/EnforcedS2CodeView.swift /Users/justinporter/git/ambient/Installer2/Installer/FeatureFlags.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Stargate/AddBridgeView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/SensorTypeView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/WiFiDevices/RemoveWifiDeviceView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Unit/PointToPointHubOverviewViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/QRCode/ScanQRCodeCameraView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/QRCode/ViewfinderCorners.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/SignInFlow/SignInPasswordView.swift /Users/justinporter/git/ambient/Installer2/Installer/DependencyContainer.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/Community.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Hub/BridgeViewModel.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/PointToPointDeviceViewModel.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/StargateVersion.swift /Users/justinporter/git/ambient/Installer2/Installer/Services/ObjectRepository.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Hub/RemoveHubViewModel.swift /Users/justinporter/git/ambient/Installer2/Installer/Stargate/StargateDevice.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Hub/PointToPointHubViewModel.swift -primary-file /Users/justinporter/git/ambient/Installer2/InstallerUI/WiFiDevices/InstallDoorbellView.swift -primary-file /Users/justinporter/git/ambient/Installer2/Installer/Services/MDUService.swift /Users/justinporter/git/ambient/Installer2/Installer/Models/InstallerSchemaV1.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Hub/HubView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Hub/AssignHubView.swift -primary-file /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceDetails/RemoveZigbeeDeviceView.swift /Users/justinporter/git/ambient/Installer2/InstallerUI/Common/Checkmark.swift -primary-file /Users/justinporter/git/ambient/Installer2/InstallerUI/DeviceInclusion/DeviceInclusionView.swift "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/DerivedSources/GeneratedAssetSymbols.swift" -supplementary-output-file-map "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/supplementaryOutputs-834" -emit-localized-strings -emit-localized-strings-path "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64" -target arm64-apple-ios17.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -stack-check -sdk /Applications/Xcode_16.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.4.sdk -I /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/PackageFrameworks -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/Bixby -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTBluetooth -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTClientFoundation -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTCore -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTFirmware -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTFirmwareControlling -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTLog-dynamic -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTObservability -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CoreBluetoothMock -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CryptoSwift -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseABTesting -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseCore -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseCoreExtension -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseCoreInternal -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseCrashlytics -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseInstallations -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebasePerformance -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseRemoteConfig -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseRemoteConfigInterop -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseSessions -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseSharedSwift -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/GoogleDataTransport -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/GoogleUtilities -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/LDSwiftEventSource -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/LaunchDarkly -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/LevelDFULibrary -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/LevelUI -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/Networking-dynamic -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-Api -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-DataCompression -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-Protocol-Exporter-Common -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-Protocol-Exporter-Http -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-Sdk -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-SdkResourceExtension -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-StdoutExporter -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/PromisesObjC -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/PromisesSwift -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/SwiftCBOR -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/SwiftProtobuf -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/ZIPFoundation -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/iOSMcuManagerLibrary -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/micro-ecc -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/nanopb -F /Users/justinporter/git/ambient/Client-KMM/ios/installer/build/cocoapods/framework -F /Users/justinporter/git/ambient/Pods/FirebaseAnalytics/Frameworks -F /Users/justinporter/git/ambient/Pods/GoogleAppMeasurement/Frameworks -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/FirebaseAnalytics/WithoutAdIdSupport -F /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/XCFrameworkIntermediates/GoogleAppMeasurement/WithoutAdIdSupport -no-color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /Users/justinporter/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -profile-generate -profile-coverage-mapping -swift-version 5 -enforce-exclusivity=checked -Onone -D DEBUG -D COCOAPODS -enable-actor-data-race-checks -serialize-debugging-options -const-gather-protocols-file "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/Ambient Installer_const_extract_protocols.json" -enable-experimental-feature DebugDescriptionMacro -enable-bare-slash-regex -empty-abi-descriptor -validate-clang-modules-once -clang-build-session-file /Users/justinporter/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -Xcc -working-directory -Xcc /Users/justinporter/git/ambient/Installer2 -resource-dir /Applications/Xcode_16.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -file-compilation-dir /Users/justinporter/git/ambient/Installer2 -Xcc -ivfsstatcache -Xcc /Users/justinporter/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos18.4-22E235-9fa6283f91586db2e4c97dfaab089ebc.sdkstatcache -Xcc "-I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/swift-overrides.hmap" -Xcc -iquote -Xcc "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Ambient\342\200\202for\342\200\202Installer-generated-files.hmap" -Xcc "-I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Ambient\342\200\202for\342\200\202Installer-own-target-headers.hmap" -Xcc "-I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Ambient\342\200\202for\342\200\202Installer-all-non-framework-target-headers.hmap" -Xcc -ivfsoverlay -Xcc /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Installer2-6df1c5e4bf4c5fa5bdd5eeb14b72ebbb-VFS-iphoneos/all-product-headers.yaml -Xcc -iquote -Xcc "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Ambient\342\200\202for\342\200\202Installer-project-headers.hmap" -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/include -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/Bixby/Bixby.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTBluetooth/CTBluetooth.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTClientFoundation/CTClientFoundation.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTCore/CTCore.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTFirmware/CTFirmware.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTFirmwareControlling/CTFirmwareControlling.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTLog-dynamic/CTLog.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CTObservability/CTObservability.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CoreBluetoothMock/CoreBluetoothMock.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/CryptoSwift/CryptoSwift.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseABTesting/FirebaseABTesting.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseCore/FirebaseCore.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseCoreExtension/FirebaseCoreExtension.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseCoreInternal/FirebaseCoreInternal.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseCrashlytics/FirebaseCrashlytics.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseInstallations/FirebaseInstallations.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebasePerformance/FirebasePerformance.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseRemoteConfig/FirebaseRemoteConfig.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseRemoteConfigInterop/FirebaseRemoteConfigInterop.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseSessions/FirebaseSessions.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/FirebaseSharedSwift/FirebaseSharedSwift.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/GoogleDataTransport/GoogleDataTransport.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/GoogleUtilities/GoogleUtilities.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/LDSwiftEventSource/LDSwiftEventSource.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/LaunchDarkly/LaunchDarkly.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/LevelDFULibrary/LevelDFULibrary.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/LevelUI/LevelUI.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/Networking-dynamic/Networking.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-Api/OpenTelemetryApi.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-DataCompression/DataCompression.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-Protocol-Exporter-Common/OpenTelemetryProtocolExporterCommon.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-Protocol-Exporter-Http/OpenTelemetryProtocolExporterHttp.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-Sdk/OpenTelemetrySdk.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-SdkResourceExtension/ResourceExtension.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/OpenTelemetry-Swift-StdoutExporter/StdoutExporter.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/PromisesObjC/FBLPromises.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/PromisesSwift/Promises.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/SwiftCBOR/SwiftCBOR.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/SwiftProtobuf/SwiftProtobuf.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/ZIPFoundation/ZIPFoundation.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/iOSMcuManagerLibrary/iOSMcuManagerLibrary.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/micro-ecc/micro_ecc.framework/Headers -Xcc -I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Products/Debug-iphoneos/nanopb/nanopb.framework/Headers -Xcc -I/Users/justinporter/git/ambient/Pods/Headers/Public -Xcc -I/Users/justinporter/git/ambient/Pods/Headers/Public/Firebase -Xcc -I/Users/justinporter/git/ambient/Pods/Firebase/CoreOnly/Sources -Xcc "-I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/DerivedSources-normal/arm64" -Xcc "-I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/DerivedSources/arm64" -Xcc "-I/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/DerivedSources" -Xcc -DDEBUG=1 -Xcc -DCOCOAPODS=1 -Xcc -DDEBUG=1 -Xcc -DPB_FIELD_32BIT=1 -Xcc -DPB_NO_PACKED_STRUCTS=1 -Xcc -DPB_ENABLE_MALLOC=1 -module-name Ambient_for_Installer -frontend-parseable-output -disable-clang-spi -target-sdk-version 18.4 -target-sdk-name iphoneos18.4 -external-plugin-path /Applications/Xcode_16.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode_16.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode_16.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode_16.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/swift-plugin-server -in-process-plugin-server-path /Applications/Xcode_16.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Applications/Xcode_16.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Applications/Xcode_16.3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/local/lib/swift/host/plugins -o "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/InstallDoorbellView.o" -o "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/MDUService.o" -o "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/RemoveZigbeeDeviceView.o" -o "/Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Build/Intermediates.noindex/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/DeviceInclusionView.o" -index-unit-output-path "/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/InstallDoorbellView.o" -index-unit-output-path "/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/MDUService.o" -index-unit-output-path "/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/RemoveZigbeeDeviceView.o" -index-unit-output-path "/Installer2.build/Debug-iphoneos/Ambient Installer.build/Objects-normal/arm64/DeviceInclusionView.o" -index-store-path /Users/justinporter/Library/Developer/Xcode/DerivedData/CTiOS-cqcjdtpjcejvpfdjopwwbkermgrp/Index.noindex/DataStore -index-system-modules
1.	Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
2.	Compiling with effective version 5.10
3.	While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/Users/justinporter/git/ambient/Installer2/Installer/Services/MDUService.swift")
4.	While silgen emitFunction SIL function "@$s21Ambient_for_Installer9TestActorC4testyyF".
 for 'test()' (at /Users/justinporter/git/ambient/Installer2/Installer/Services/MDUService.swift:626:5)
5.	While silgen emitFunction SIL function "@$s21Ambient_for_Installer9TestActorC4testyyF6nestedL_SSyF".
 for 'nested()' (at /Users/justinporter/git/ambient/Installer2/Installer/Services/MDUService.swift:627:9)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0  swift-frontend           0x0000000108f36c28 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 56
1  swift-frontend           0x0000000108f34a60 llvm::sys::RunSignalHandlers() + 112
2  swift-frontend           0x0000000108f37264 SignalHandler(int) + 360
3  libsystem_platform.dylib 0x000000019420b624 _sigtramp + 56
4  swift-frontend           0x0000000103845fc8 swift::Lowering::SILGenFunction::emitExpectedExecutorProlog() + 916
5  swift-frontend           0x0000000103928220 swift::Lowering::SILGenFunction::emitProlog(swift::DeclContext*, swift::CaptureInfo, swift::ParameterList*, swift::ParamDecl*, swift::Type, std::__1::optional<swift::Type>, swift::SourceLoc) + 7468
6  swift-frontend           0x00000001038ac7dc swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 212
7  swift-frontend           0x00000001037f0fc0 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) + 7596
8  swift-frontend           0x00000001037f1fec swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) + 232
9  swift-frontend           0x00000001037ef1c8 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 344
10 swift-frontend           0x0000000103930ed0 swift::ASTVisitor<(anonymous namespace)::StmtEmitter, void, void, void, void, void, void>::visit(swift::Stmt*) + 6324
11 swift-frontend           0x00000001038ac8f8 swift::Lowering::SILGenFunction::emitFunction(swift::FuncDecl*) + 496
12 swift-frontend           0x00000001037f0fc0 swift::Lowering::SILGenModule::emitFunctionDefinition(swift::SILDeclRef, swift::SILFunction*) + 7596
13 swift-frontend           0x00000001037f1fec swift::Lowering::SILGenModule::emitOrDelayFunction(swift::SILDeclRef) + 232
14 swift-frontend           0x00000001037ef1c8 swift::Lowering::SILGenModule::emitFunction(swift::FuncDecl*) + 344
15 swift-frontend           0x0000000103949d44 (anonymous namespace)::SILGenType::visitFuncDecl(swift::FuncDecl*) + 32
16 swift-frontend           0x000000010394653c (anonymous namespace)::SILGenType::emitType() + 364
17 swift-frontend           0x00000001037eee0c swift::ASTVisitor<swift::Lowering::SILGenModule, void, void, void, void, void, void>::visit(swift::Decl*) + 100
18 swift-frontend           0x00000001037f5a54 swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 1568
19 swift-frontend           0x000000010392ecc4 swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule>> (swift::ASTLoweringDescriptor), (swift::RequestFlags)17>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 208
20 swift-frontend           0x00000001037fa5e0 swift::ASTLoweringRequest::OutputType swift::Evaluator::getResultUncached<swift::ASTLoweringRequest, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()>(swift::ASTLoweringRequest const&, swift::ASTLoweringRequest::OutputType swift::evaluateOrFatal<swift::ASTLoweringRequest>(swift::Evaluator&, swift::ASTLoweringRequest)::'lambda'()) + 728
21 swift-frontend           0x0000000102d88064 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 968
22 swift-frontend           0x0000000102d8b654 performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 1764
23 swift-frontend           0x0000000102d89fd8 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3716
24 swift-frontend           0x0000000102d0e0bc swift::mainEntry(int, char const**) + 5428
25 dyld                     0x0000000193e32b4c start + 6000

Expected behavior

Code should compile without errors.

Environment

Apple Swift version 6.1 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
Compiling with effective version 5.10
Xcode 16.3

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.crashBug: A crash, i.e., an abnormal termination of softwaretriage neededThis issue needs more specific labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions