I Need Help! contentview.swift error

I started a new project and I named it Document Menu (don’t as why) but I am getting a error code for the preview. I’m not sure why this has happened Im hoping someone could help please.

== DATE:

Wednesday, June 5, 2024 at 4:34:14 PM Eastern Daylight Time

2024-06-05T20:34:14Z

== PREVIEW UPDATE ERROR:

CompileDylibError: Failed to build ContentView.swift

Compiling failed: unexpected input file: /Volumes/Andrews/Hard

warning: no such SDK: /Volumes/Andrews
error: unexpected input file: /Volumes/Andrews/Hard
error: unexpected input file: /Volumes/Andrews/Drive/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
error: unexpected input file: /Volumes/Andrews/Hard
error: unexpected input file: /Volumes/Andrews/Drive/Document
error: unexpected input file: /Volumes/Andrews/Menu
<unknown>:0: error: unable to set working directory: /Volumes/Andrews
<unknown>:0: warning: no such sysroot directory: '/Volumes/Andrews'
<unknown>:0: error: unable to load standard library for target 'x86_64-apple-macos14.3'


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

|  BuildInvocationError
|  
|  /Volumes/Andrew's Hard Drive/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc "@/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64/ContentView.1.preview-thunk-argumentList.txt"
|  File Arguments: -enforce-exclusivity=checked
|  -DDEBUG
|  -sdk
|  /Volumes/Andrew's Hard Drive/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
|  -target
|  x86_64-apple-macos14.3
|  -enable-bare-slash-regex
|  -module-cache-path
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
|  -Xfrontend
|  -serialize-debugging-options
|  -enable-testing
|  -swift-version
|  5
|  -I
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug
|  -F
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug
|  -emit-localized-strings
|  -emit-localized-strings-path
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64
|  -c
|  -j12
|  -Xcc
|  -ivfsstatcache
|  -Xcc
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.5-23F73-14ee6886fdd89d141d780e380b8c1c08.sdkstatcache
|  -no-color-diagnostics
|  -serialize-diagnostics
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/swift-overrides.hmap
|  -Xcc
|  -iquote
|  -Xcc
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Document Menu-generated-files.hmap
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Document Menu-own-target-headers.hmap
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Document Menu-all-target-headers.hmap
|  -Xcc
|  -iquote
|  -Xcc
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Document Menu-project-headers.hmap
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug/include
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/DerivedSources-normal/x86_64
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/DerivedSources/x86_64
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/DerivedSources
|  -Xcc
|  -DDEBUG=1
|  -working-directory
|  /Volumes/Andrew's Hard Drive/Document Menu
|  -experimental-emit-module-separately
|  -disable-cmo
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64/ContentView.1.preview-thunk.swift
|  -o
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64/ContentView.1.preview-thunk.o
|  -module-name
|  Document_Menu_PreviewReplacement_ContentView_1
|  -parse-as-library
|  -Onone
|  -Xfrontend
|  -disable-modules-validate-system-headers
|  -gline-tables-only
|  -Xfrontend
|  -disable-previous-implementation-calls-in-dynamic-replacements
|  -Xfrontend
|  -emit-dependencies-path
|  -Xfrontend
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64/ContentView.1.preview-thunk.o.dependencies.txt
|  -Xfrontend
|  -dump-macro-expansions

== PREVIEW UPDATE ERROR:

CompileDylibError: Failed to build ContentView.swift

Compiling failed: unexpected input file: /Volumes/Andrews/Hard

warning: no such SDK: /Volumes/Andrews
error: unexpected input file: /Volumes/Andrews/Hard
error: unexpected input file: /Volumes/Andrews/Drive/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
error: unexpected input file: /Volumes/Andrews/Hard
error: unexpected input file: /Volumes/Andrews/Drive/Document
error: unexpected input file: /Volumes/Andrews/Menu
<unknown>:0: error: unable to set working directory: /Volumes/Andrews
<unknown>:0: warning: no such sysroot directory: '/Volumes/Andrews'
<unknown>:0: error: unable to load standard library for target 'x86_64-apple-macos14.3'


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

|  BuildInvocationError
|  
|  /Volumes/Andrew's Hard Drive/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc "@/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64/ContentView.1.preview-thunk-argumentList.txt"
|  File Arguments: -enforce-exclusivity=checked
|  -DDEBUG
|  -sdk
|  /Volumes/Andrew's Hard Drive/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk
|  -target
|  x86_64-apple-macos14.3
|  -enable-bare-slash-regex
|  -module-cache-path
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
|  -Xfrontend
|  -serialize-debugging-options
|  -enable-testing
|  -swift-version
|  5
|  -I
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug
|  -F
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug
|  -emit-localized-strings
|  -emit-localized-strings-path
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64
|  -c
|  -j12
|  -Xcc
|  -ivfsstatcache
|  -Xcc
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.5-23F73-14ee6886fdd89d141d780e380b8c1c08.sdkstatcache
|  -no-color-diagnostics
|  -serialize-diagnostics
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/swift-overrides.hmap
|  -Xcc
|  -iquote
|  -Xcc
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Document Menu-generated-files.hmap
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Document Menu-own-target-headers.hmap
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Document Menu-all-target-headers.hmap
|  -Xcc
|  -iquote
|  -Xcc
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Document Menu-project-headers.hmap
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug/include
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/DerivedSources-normal/x86_64
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/DerivedSources/x86_64
|  -Xcc
|  -I/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/DerivedSources
|  -Xcc
|  -DDEBUG=1
|  -working-directory
|  /Volumes/Andrew's Hard Drive/Document Menu
|  -experimental-emit-module-separately
|  -disable-cmo
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64/ContentView.1.preview-thunk.swift
|  -o
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64/ContentView.1.preview-thunk.o
|  -module-name
|  Document_Menu_PreviewReplacement_ContentView_1
|  -parse-as-library
|  -Onone
|  -Xfrontend
|  -disable-modules-validate-system-headers
|  -gline-tables-only
|  -Xfrontend
|  -disable-previous-implementation-calls-in-dynamic-replacements
|  -Xfrontend
|  -emit-dependencies-path
|  -Xfrontend
|  /Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Intermediates.noindex/Document Menu.build/Debug/Document Menu.build/Objects-normal/x86_64/ContentView.1.preview-thunk.o.dependencies.txt
|  -Xfrontend
|  -dump-macro-expansions

== VERSION INFO:

Tools: 15F31d
OS:    23D60
PID:   5119
Model: MacBook Pro
Arch:  x86_64h

== ENVIRONMENT:

openFiles = [
    /Volumes/Andrew's Hard Drive/Document Menu/Document Menu/ContentView.swift
]
wantsNewBuildSystem = true
newBuildSystemAvailable = true
activeScheme = Document Menu
activeRunDestination = My Mac variant macos x86_64
workspaceArena = [x]
buildArena = [x]
buildableEntries = [
    Document Menu.app
]
runMode = Dynamic Replacement

== SELECTED RUN DESTINATION:

name = My Mac
eligible = true
sdk = Optional(<DVTSDK:0x7ff71ed15e30:'macosx14.5':macOS 14.5:<DVTFilePath:0x600003c69b80:'/Volumes/Andrew's Hard Drive/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk'>>)
variant = Optional("macos")
device = Optional(<DVTLocalComputer: 0x7ff71ea0b4e0 (My Mac | x86_64h)>)

== SELECTED RUN DESTINATION:

macOS 14.5 | macos | x86_64 | MacBook Pro | no proxy

== PACKAGE RESOLUTION ERRORS:

== REFERENCED SOURCE PACKAGES:

== SESSION GROUP 338:

workspace identifier: WorkspaceIdentifier(identifier: 486EDFD0-B693-4221-BB7C-6DEA7310B7C7)
providers: [
    Preview Provider | Registry-ContentView.swift#1[preview] [Editor(299)]
]
translation units: [
    /Volumes/Andrew's Hard Drive/Document Menu/Document Menu/ContentView.swift
]
attributes: [
    Editor(299):     []
]
session: 339
request sessions: [
    Registry[ContentView.swift: preview #1 (line 22)]: not completed
]

== UPDATE SESSION 339:

Start Date: Wednesday, June 5, 2024 at 4:33:55 PM Eastern Daylight Time
Preview Preflight {
    UpdaterStore {
        updaterLimit: none
        updatersByIdentifier: [
            369 {
                state: unloaned
                RemoteAgentUpdater {
                    workspaceIdentifier: 486EDFD0-B693-4221-BB7C-6DEA7310B7C7
                    supportsOnDevice: false
                    processName: Document Menu.app
                    pid: 5333
                }
            }
        ]
        expectedAbandonedIdentifiers: []
    }
    My Mac {
        dvtDevice: My Mac
        buildNumber: 14.3.1 (23D60)
        arch: x86_64h
    }
    pid: 5333
    host bundle: 
    com.AndrewSaavedra.Document-Menu {
        url: file:///Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document%20Menu/Products/Debug/Document%20Menu.app
        version: 344
        signingInformation: 
        Code Signing {
            identifier: com.AndrewSaavedra.Document-Menu
            hasGetTaskAllow: false
            isSandboxed: true
        }
        attributes: [
            LaunchConfigEnvironmentVariablesPreviewAttributesKey: ["__XPC_DYLD_FRAMEWORK_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "DYLD_FRAMEWORK_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "OS_LOG_TRANSLATE_PRINT_MODE": "0x80", "CFLOG_FORCE_DISABLE_STDERR": "1", "PACKAGE_RESOURCE_BUNDLE_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "OS_ACTIVITY_TOOLS_PRIVACY": "YES", "DYLD_LIBRARY_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "OS_LOG_DT_HOOK_PREFIX": "OSLOG-DC0AE22B-3EE2-4E39-B8FC-7129A7F40141", "__XCODE_BUILT_PRODUCTS_DIR_PATHS": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "OS_LOG_DT_HOOK_MODE": "0x07", "OS_ACTIVITY_TOOLS_OVERSIZE": "YES", "__XPC_DYLD_LIBRARY_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "DYLD_INSERT_LIBRARIES": "/Volumes/Andrew\'s Hard Drive/Xcode.app/Contents/Developer/usr/lib/libLogRedirect.dylib", "SQLITE_ENABLE_THREAD_ASSERTIONS": "1", "IDE_DISABLED_OS_ACTIVITY_DT_MODE": "1"],
            AgentRoleKey: Previews,
            AgentCompanionAppBundleIdentifierKey: nil,
            AgentRunModeKey: Full Binary,
            LaunchConfigArgumentsPreviewAttributesKey: ["-NSDocumentRevisionsDebugMode", "YES"],
            AppExtensionIdentifierPreviewAttributeKey: nil,
        ]
    }
    builtTargetDescriptions: empty
}
Preview Provider {
    UpdaterStore {
        updaterLimit: none
        updatersByIdentifier: [
            369 {
                state: unloaned
                RemoteAgentUpdater {
                    workspaceIdentifier: 486EDFD0-B693-4221-BB7C-6DEA7310B7C7
                    supportsOnDevice: false
                    processName: Document Menu.app
                    pid: 5333
                }
            }
        ]
        expectedAbandonedIdentifiers: []
    }
    My Mac {
        dvtDevice: My Mac
        buildNumber: 14.3.1 (23D60)
        arch: x86_64h
    }
    pid: 5333
    host bundle: 
    com.AndrewSaavedra.Document-Menu {
        url: file:///Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document%20Menu/Products/Debug/Document%20Menu.app
        version: 344
        signingInformation: 
        Code Signing {
            identifier: com.AndrewSaavedra.Document-Menu
            hasGetTaskAllow: false
            isSandboxed: true
        }
        attributes: [
            LaunchConfigEnvironmentVariablesPreviewAttributesKey: ["__XPC_DYLD_FRAMEWORK_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "DYLD_FRAMEWORK_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "OS_LOG_TRANSLATE_PRINT_MODE": "0x80", "CFLOG_FORCE_DISABLE_STDERR": "1", "PACKAGE_RESOURCE_BUNDLE_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "OS_ACTIVITY_TOOLS_PRIVACY": "YES", "DYLD_LIBRARY_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "OS_LOG_DT_HOOK_PREFIX": "OSLOG-DC0AE22B-3EE2-4E39-B8FC-7129A7F40141", "__XCODE_BUILT_PRODUCTS_DIR_PATHS": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "OS_LOG_DT_HOOK_MODE": "0x07", "OS_ACTIVITY_TOOLS_OVERSIZE": "YES", "__XPC_DYLD_LIBRARY_PATH": "/Users/jasonsmac/Library/Developer/Xcode/DerivedData/Document_Menu-glkoqoxukqihpjbmhwiegtagublp/Build/Intermediates.noindex/Previews/macos/Document Menu/Products/Debug", "DYLD_INSERT_LIBRARIES": "/Volumes/Andrew\'s Hard Drive/Xcode.app/Contents/Developer/usr/lib/libLogRedirect.dylib", "SQLITE_ENABLE_THREAD_ASSERTIONS": "1", "IDE_DISABLED_OS_ACTIVITY_DT_MODE": "1"],
            AgentRoleKey: Previews,
            AgentCompanionAppBundleIdentifierKey: nil,
            AgentRunModeKey: Full Binary,
            LaunchConfigArgumentsPreviewAttributesKey: ["-NSDocumentRevisionsDebugMode", "YES"],
            AppExtensionIdentifierPreviewAttributeKey: nil,
        ]
    }
    builtTargetDescriptions: empty
}
Build Graph {
    target app Document Menu.app (#1)
       translationUnit ContentView.swift (#2)
       Preview Preflight | Registry-ContentView.swift#1[preview]: from Editor(299) for local Preview Preflight | Registry-ContentView.swift#1[preview]: from Editor(299) for local (#3)
       Preview Provider | Registry-ContentView.swift#1[preview] [Editor(299)] Preview Provider | Registry-ContentView.swift#1[preview] [Editor(299)] (#4)
}
Update Plan {
    macOS [x86_64 macosx14.5 macos] (MacBook Pro, 831785D2-5B0B-5064-BF0D-674284072E99-macosx14.5-x86_64-macos), [], thinning enabled, thunking enabled) {
        Destination: My Mac dvtdevice-local-computer:localhost | default device for macos [
            Document_Menu app - Previews {
                execution points [
                    point Preview Preflight | Registry-ContentView.swift#1[preview]: from Editor(299) for local
                    provider Document_Menu.Registry[ContentView.swift: preview #1 (line 22)]
                ]
                translation units [
                    ContentView.swift (in Document Menu.app)
                ]
                modules [
                    Document Menu.app
                ]
            }
        ]
    }
}

== POWER STATE LOGS:

6/5/2024, 4:33 PM Received power source state: Battery Powered (lowPowerMode: true, status: unplugged, level: 56%)
6/5/2024, 4:33 PM Broadcasting device power state: Low Power
6/5/2024, 4:33 PM No device power state user override user default value.
6/5/2024, 4:33 PM Received power source state: Battery Powered (lowPowerMode: true, status: unplugged, level: 55%)Current power state: Low Power

@Andrew_S21

Hi Andrew,

Welcome to the community.

Can you provide a screen shot of your entire Xcode window with the ContentView window visible.


Hey Chris I hope you are doing well, here is the Screenshot.

Hi Andrew,

I’ve been away for a while.

On the face of it that looks OK. I’m curious to know if there is any issue with the name you have given the App. Can you create a new App but name it without any spaces. ie: DocumentMenu and let’s see if that makes any difference. What version of Xcode are you using? I’m presuming 15.4 since that’s the latest although any version of Xcode 15.x should be fine.


Hey I did as you told me here is the Screenshot it’s still the same. As for the version It’s Xcode 15.4 Im not really sure why this error code is happening.

I suspect there is something wrong with the Xcode installation.

My suggestion is that you delete Xcode from your Applications folder (it will ask you for your Mac password)

Download it again from the App Store and allow the installation to complete.
Then reboot your Mac
Open Xcode and when the selection box comes up for the simulators you want to add (the Mac simulator is provided by default) select iOS and wait for that to finish installing. It’s about 7Gb so go make a coffee while that is installing.
When it completes close Xcode and reboot your Mac again.
Open Xcode and the open that project you created and see if the issue has now resolved itself.
Let me know how you go.

Cheers

I had a similar issue. One day I opened my projects and none of the previews worked. I didn’t know how and why that happened. I tried reinstalling Xcode and restarting my Mac and even tried to create a new project but nothing worked. I’m also on the latest version of Xcode. Did you find any solutions?