Xcode Preview Not Working - XOJITError, JITError

I'm able to run my app on a simulator, but previews aren't working even for the simplest test preview.

I build my project with XcodeGen.

Here is my project.yml file:

name: Ecstasy
options:
  deploymentTarget:
    iOS: 17.0
  xcodeVersion: "15.2"
  developmentLanguage: en

targets:
  Ecstasy:
    type: application
    platform: iOS
    sources: 
      - path: Sources
      - path: Resources
    info:
      path: Configurations/Info.plist
      properties:
        CFBundleDevelopmentRegion: "$(DEVELOPMENT_LANGUAGE)"
        CFBundleExecutable: "$(EXECUTABLE_NAME)"
        CFBundleIdentifier: "$(PRODUCT_BUNDLE_IDENTIFIER)"
        CFBundleInfoDictionaryVersion: "6.0"
        CFBundleName: "$(PRODUCT_NAME)"
        CFBundlePackageType: "APPL"
        CFBundleShortVersionString: "1.0"
        CFBundleVersion: "1"
        UILaunchStoryboardName: ""
        UIViewControllerBasedStatusBarAppearance: true
        UIStatusBarHidden: false
        UIRequiresFullScreen: true
        UISupportedInterfaceOrientations:
          - UIInterfaceOrientationPortrait
        UIUserInterfaceStyle: Light
    settings:
      base:
        DEVELOPMENT_TEAM: MLJ2C965T7
        PRODUCT_BUNDLE_IDENTIFIER: com.raw-e.Ecstasy
        SWIFT_OPTIMIZATION_LEVEL: "-O"
        SWIFT_COMPILATION_MODE: wholemodule
        ENABLE_PREVIEWS: YES
        DEBUG_INFORMATION_FORMAT: dwarf-with-dsym
        CLANG_ENABLE_MODULES: YES
        SWIFT_VERSION: 6.0
        TARGETED_DEVICE_FAMILY: 1
        ENABLE_BITCODE: NO
        SWIFT_ACTIVE_COMPILATION_CONDITIONS: DEBUG
        SWIFT_EMIT_LOC_STRINGS: YES
        SWIFT_STRICT_CONCURRENCY: complete
        ENABLE_USER_SCRIPT_SANDBOXING: YES
      configs:
        debug:
          SWIFT_OPTIMIZATION_LEVEL: "-Onone"
          SWIFT_COMPILATION_MODE: incremental
          ENABLE_TESTABILITY: YES
          GCC_OPTIMIZATION_LEVEL: 0
          ONLY_ACTIVE_ARCH: YES
          DEBUG_INFORMATION_FORMAT: dwarf
          ENABLE_PREVIEWS: YES
          SWIFT_ACTIVE_COMPILATION_CONDITIONS: "DEBUG PREVIEW"
        release:
          SWIFT_OPTIMIZATION_LEVEL: "-O"
          SWIFT_COMPILATION_MODE: wholemodule
          ENABLE_TESTABILITY: NO
          GCC_OPTIMIZATION_LEVEL: s
          ONLY_ACTIVE_ARCH: NO
    dependencies:
      - package: APITime
      - package: GUITime
      - package: LoggingTime
      - package: Shares

packages:
  APITime: { path: "/Users/raw-e/Desktop/Useful Swift Things/My Packages/APITime" }
  GUITime: { path: "/Users/raw-e/Desktop/Useful Swift Things/My Packages/GUITime" }
  LoggingTime: { path: "/Users/raw-e/Desktop/Useful Swift Things/My Packages/LoggingTime" }
  Shares: { path: "/Users/raw-e/Desktop/Useful Swift Things/My Packages/Shares" }

Same issue here, even without Xcodegen

Xcode Preview Not Working - XOJITError, JITError
 
 
Q