This is a tracking meta-issue for bugs with Xcode 16 Previews.
TL;DR If you're getting errors building SwiftUI previews, go to Editor > Canvas > menu and check Use Legacy Preview Execution.
Xcode 16 started throwing these JIT errors which, essentially, complain about not being able to find any of the symbols from the static library. Apple has obviously broken something with their new preview renderer.
This is a tracking meta-issue for bugs with Xcode 16 Previews.
TL;DR If you're getting errors building SwiftUI previews, go to Editor > Canvas > menu and check Use Legacy Preview Execution.
Xcode 16 started throwing these JIT errors which, essentially, complain about not being able to find any of the symbols from the static library. Apple has obviously broken something with their new preview renderer.
Some known issue threads:
Xcode build failure log
``` == DATE: Monday, November 4, 2024 at 14:30:03 Korean Standard Time 2024-11-04T05:30:03Z == PREVIEW UPDATE ERROR: [Remote] JITError: Runtime linking failure Additional Link Time Errors: Symbols not found: [ _uniffi_ferrostar_fn_method_routedeviationdetector_check_route_deviation, _uniffi_ferrostar_fn_constructor_routeadapter_new, _uniffi_ferrostar_checksum_method_routedeviationdetector_check_route_deviation, _uniffi_ferrostar_checksum_constructor_routeadapter_new, _uniffi_ferrostar_fn_constructor_navigationcontroller_new, _uniffi_ferrostar_fn_clone_routedeviationdetector, _uniffi_ferrostar_checksum_constructor_navigationcontroller_new, _uniffi_ferrostar_fn_clone_routerequestgenerator, _uniffi_ferrostar_fn_method_navigationcontroller_advance_to_next_step, _uniffi_ferrostar_checksum_func_create_osrm_response_parser, _uniffi_ferrostar_fn_method_routeadapter_generate_request, _uniffi_ferrostar_fn_func_get_route_polyline, _uniffi_ferrostar_checksum_method_navigationcontroller_get_initial_state, _uniffi_ferrostar_checksum_constructor_routeadapter_new_valhalla_http, _uniffi_ferrostar_fn_free_routeresponseparser, _uniffi_ferrostar_fn_free_routerequestgenerator, _uniffi_ferrostar_fn_free_routeadapter, _uniffi_ferrostar_checksum_func_location_simulation_from_route, _uniffi_ferrostar_fn_method_routeresponseparser_parse_response, _uniffi_ferrostar_checksum_func_create_route_from_osrm, _uniffi_ferrostar_fn_method_routerequestgenerator_generate_request, _uniffi_ferrostar_fn_func_create_route_from_osrm, _uniffi_ferrostar_fn_method_navigationcontroller_get_initial_state, _uniffi_ferrostar_fn_func_create_osrm_response_parser, _ffi_ferrostar_rustbuffer_free, _uniffi_ferrostar_fn_clone_routeadapter, _uniffi_ferrostar_fn_clone_navigationcontroller, _uniffi_ferrostar_fn_free_routedeviationdetector, _uniffi_ferrostar_checksum_method_navigationcontroller_update_user_location, _uniffi_ferrostar_fn_constructor_routeadapter_new_valhalla_http, _uniffi_ferrostar_checksum_method_navigationcontroller_advance_to_next_step, _uniffi_ferrostar_checksum_method_routeadapter_generate_request, _uniffi_ferrostar_fn_func_location_simulation_from_coordinates, _uniffi_ferrostar_checksum_func_get_route_polyline, _ffi_ferrostar_uniffi_contract_version, _uniffi_ferrostar_checksum_func_location_simulation_from_polyline, _uniffi_ferrostar_fn_func_location_simulation_from_route, _uniffi_ferrostar_fn_init_callback_vtable_routerequestgenerator, _uniffi_ferrostar_checksum_method_routerequestgenerator_generate_request, _uniffi_ferrostar_fn_method_routeadapter_parse_response, _uniffi_ferrostar_checksum_method_routeresponseparser_parse_response, _uniffi_ferrostar_fn_func_location_simulation_from_polyline, _uniffi_ferrostar_fn_func_create_valhalla_request_generator, _uniffi_ferrostar_checksum_func_location_simulation_from_coordinates, _uniffi_ferrostar_fn_init_callback_vtable_routedeviationdetector, _uniffi_ferrostar_fn_init_callback_vtable_routeresponseparser, _uniffi_ferrostar_fn_func_advance_location_simulation, _uniffi_ferrostar_fn_free_navigationcontroller, _uniffi_ferrostar_checksum_func_create_valhalla_request_generator, _uniffi_ferrostar_fn_method_navigationcontroller_update_user_location, _ffi_ferrostar_rustbuffer_from_bytes, _uniffi_ferrostar_fn_clone_routeresponseparser, _uniffi_ferrostar_checksum_method_routeadapter_parse_response, _uniffi_ferrostar_checksum_func_advance_location_simulation ] ================================== | [Remote] LLVMError | | LLVMError: LLVMError(description: "Failed to materialize symbols: { (static-FerrostarSwiftUI, { __replacement_tag$95 }) }") == ERROR: [Remote] JITError: Runtime linking failure Additional Link Time Errors: Symbols not found: [ _uniffi_ferrostar_fn_method_routedeviationdetector_check_route_deviation, _uniffi_ferrostar_fn_constructor_routeadapter_new, _uniffi_ferrostar_checksum_method_routedeviationdetector_check_route_deviation, _uniffi_ferrostar_checksum_constructor_routeadapter_new, _uniffi_ferrostar_fn_constructor_navigationcontroller_new, _uniffi_ferrostar_fn_clone_routedeviationdetector, _uniffi_ferrostar_checksum_constructor_navigationcontroller_new, _uniffi_ferrostar_fn_clone_routerequestgenerator, _uniffi_ferrostar_fn_method_navigationcontroller_advance_to_next_step, _uniffi_ferrostar_checksum_func_create_osrm_response_parser, _uniffi_ferrostar_fn_method_routeadapter_generate_request, _uniffi_ferrostar_fn_func_get_route_polyline, _uniffi_ferrostar_checksum_method_navigationcontroller_get_initial_state, _uniffi_ferrostar_checksum_constructor_routeadapter_new_valhalla_http, _uniffi_ferrostar_fn_free_routeresponseparser, _uniffi_ferrostar_fn_free_routerequestgenerator, _uniffi_ferrostar_fn_free_routeadapter, _uniffi_ferrostar_checksum_func_location_simulation_from_route, _uniffi_ferrostar_fn_method_routeresponseparser_parse_response, _uniffi_ferrostar_checksum_func_create_route_from_osrm, _uniffi_ferrostar_fn_method_routerequestgenerator_generate_request, _uniffi_ferrostar_fn_func_create_route_from_osrm, _uniffi_ferrostar_fn_method_navigationcontroller_get_initial_state, _uniffi_ferrostar_fn_func_create_osrm_response_parser, _ffi_ferrostar_rustbuffer_free, _uniffi_ferrostar_fn_clone_routeadapter, _uniffi_ferrostar_fn_clone_navigationcontroller, _uniffi_ferrostar_fn_free_routedeviationdetector, _uniffi_ferrostar_checksum_method_navigationcontroller_update_user_location, _uniffi_ferrostar_fn_constructor_routeadapter_new_valhalla_http, _uniffi_ferrostar_checksum_method_navigationcontroller_advance_to_next_step, _uniffi_ferrostar_checksum_method_routeadapter_generate_request, _uniffi_ferrostar_fn_func_location_simulation_from_coordinates, _uniffi_ferrostar_checksum_func_get_route_polyline, _ffi_ferrostar_uniffi_contract_version, _uniffi_ferrostar_checksum_func_location_simulation_from_polyline, _uniffi_ferrostar_fn_func_location_simulation_from_route, _uniffi_ferrostar_fn_init_callback_vtable_routerequestgenerator, _uniffi_ferrostar_checksum_method_routerequestgenerator_generate_request, _uniffi_ferrostar_fn_method_routeadapter_parse_response, _uniffi_ferrostar_checksum_method_routeresponseparser_parse_response, _uniffi_ferrostar_fn_func_location_simulation_from_polyline, _uniffi_ferrostar_fn_func_create_valhalla_request_generator, _uniffi_ferrostar_checksum_func_location_simulation_from_coordinates, _uniffi_ferrostar_fn_init_callback_vtable_routedeviationdetector, _uniffi_ferrostar_fn_init_callback_vtable_routeresponseparser, _uniffi_ferrostar_fn_func_advance_location_simulation, _uniffi_ferrostar_fn_free_navigationcontroller, _uniffi_ferrostar_checksum_func_create_valhalla_request_generator, _uniffi_ferrostar_fn_method_navigationcontroller_update_user_location, _ffi_ferrostar_rustbuffer_from_bytes, _uniffi_ferrostar_fn_clone_routeresponseparser, _uniffi_ferrostar_checksum_method_routeadapter_parse_response, _uniffi_ferrostar_checksum_func_advance_location_simulation ] ================================== | [Remote] LLVMError | | LLVMError: LLVMError(description: "Failed to materialize symbols: { (static-FerrostarSwiftUI, { __replacement_tag$95 }) }") == VERSION INFO: Tools: 16B40 OS: 24B83 PID: 74110 Model: MacBook Pro Arch: arm64e == ENVIRONMENT: openFiles = [ /Users/ianthetechie/ferrostar/apple/Sources/FerrostarSwiftUI/Views/Controls/MuteUIButton.swift ] wantsNewBuildSystem = true newBuildSystemAvailable = true activeScheme = FerrostarCore-Package activeRunDestination = iPhone 15 variant iphonesimulator arm64 workspaceArena = [x] buildArena = [x] buildableEntries = [ FerrostarSwiftUI FerrostarSwiftUI ] runMode = JIT Executor == SELECTED RUN DESTINATION: Simulator - iOS 18.1 | iphonesimulator | arm64 | iPhone 15 | no proxy == EXECUTION MODE OVERRIDES: Workspace JIT mode user setting: true Falling back to Dynamic Replacement: false == PACKAGE RESOLUTION ERRORS: == REFERENCED SOURCE PACKAGES: