Xcode previews fail with JIT error

== PREVIEW UPDATE ERROR:

JITError

==================================

|  NoBuiltTargetDescriptionCouldBeFound
|  
|  translationUnit: PreviewTranslationUnit(moduleNamePrefix: "Previews_EmptyFeedRow", sourceIdentifier: file:///Users/bryananderson/Developer/JournalApp/JournalApp/Interface/Feed/EmptyFeedRow.swift -> EmptyFeedRow.swift, parseTree: ParseTree(version: 727, statements: 3, providers: 1), update: nil, changesContextMemoizer: PreviewsPipeline.PreviewTranslationUnit.(unknown context at $34b4b9c4c).ChangesContextMemoizer(parseTree: ParseTree(version: 727, statements: 3, providers: 1), sourceIdentifier: file:///Users/bryananderson/Developer/JournalApp/JournalApp/Interface/Feed/EmptyFeedRow.swift -> EmptyFeedRow.swift, cachedValue: os.OSAllocatedUnfairLock<Swift.Optional<PreviewsModel.ParseTree.PreviewChangesContext>>(__lock: Swift.ManagedBuffer<Swift.Optional<PreviewsModel.ParseTree.PreviewChangesContext>, __C.os_unfair_lock_s>)), registryDeclarationMemoizer: PreviewsPipeline.PreviewTranslationUnit.(unknown context at $34b4b9bec).RegistryDeclarationMemoizer)
|  
|  builtTargetDescriptions:
|  

== VERSION INFO:

Tools: 16A5171c
OS:    24A5264n
PID:   906
Model: MacBook Pro
Arch:  arm64e

== ENVIRONMENT:

openFiles = [
    /Users/bryananderson/Developer/JournalApp/JournalApp/Interface/Feed/EmptyFeedRow.swift
]
wantsNewBuildSystem = true
newBuildSystemAvailable = true
activeScheme = JournalApp
activeRunDestination = iPhone 15 Pro variant iphonesimulator arm64
workspaceArena = [x]
buildArena = [x]
buildableEntries = [
    Remember.app
]
runMode = JIT Executor

== SELECTED RUN DESTINATION:

name = iPhone 15 Pro
eligible = true
sdk = Optional(<DVTSDK:0x13870da30:'iphonesimulator18.0':Simulator - iOS 18.0:<DVTFilePath:0x600001e8c700:'/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator18.0.sdk'>>)
variant = Optional("iphonesimulator")
device = Optional(<DVTiPhoneSimulator: 0x32f00d290> {
		SimDevice: iPhone 15 Pro (CF3C85BC-F559-4437-9072-7F30153B399B, iOS 18.0, Booted)
			PairedSim: <DVTiPhoneSimulator: 0x33733d150> {
		SimDevice: Apple Watch Series 9 (45mm) (627CE93E-EB02-4200-BE40-3DCB5C91DB44, watchOS 11.0, Shutdown)
}
})

== SELECTED RUN DESTINATION:

Simulator - iOS 18.0 | iphonesimulator | arm64 | iPhone 15 Pro | Apple Watch Series 9 (45mm)
jit enabled: true
fallback to dynamic replacement: false

CrashReportError: Fatal Error in UVJITAgent.swift

App crashed due to fatalError in UVJITAgent.swift at line 58.

JIT linker connection terminated due to remote disconnect

Same here. This is awful

Can you try again with Xcode 16 Beta 2 that came out recently and let us know how it goes?

I just updated to Xcode 16 beta 3. A very simple Mac app I developed in beta 2 that previewed successfully just prior to the Xcode upgrade has started crashing on preview with the "fatalError in UVJITAgent.swift" message. It builds and runs successfully. It's only a problem previewing the app's one view.

Xcode previews fail with JIT error
 
 
Q