Skip to content

Cannot use Firebase with previews  #14178

Open
@girishw

Description

Description

I am unable to see previews when using Firebase. The app builds correctly but previews don't work. Please see logs for more info.

Reproducing the issue

See logs.

Firebase SDK Version

11.4

Xcode Version

16.1

Installation Method

Swift Package Manager

Firebase Product(s)

Firestore

Targeted Platforms

macOS

Relevant Log Output

== PREVIEW UPDATE ERROR:

    FailedToLaunchAppError: Failed to launch com.ReSchedule.ReSchedule
    
    /***/Build/Products/Beta/ReSchedule.app
    
    ==================================
    
    |  [Remote] JITError
    |  
    |  ==================================
    |  
    |  |  [Remote] CouldNotLoadInputStaticArchiveFile: Could not load static archive during preview: /***/Build/Products/Beta/FirebaseFirestoreInternal.framework/FirebaseFirestoreInternal
    |  |  
    |  |  path: /***/Build/Products/Beta/FirebaseFirestoreInternal.framework/FirebaseFirestoreInternal
    |  |  
    |  |  ==================================
    |  |  
    |  |  |  [Remote] XOJITError
    |  |  |  
    |  |  |  XOJITError: '/***/Products/Beta/FirebaseFirestoreInternal.framework/FirebaseFirestoreInternal': Operation not permitted



== PREVIEW UPDATE ERROR:

    FailedToLaunchAppError: Failed to launch com.ReSchedule.ReSchedule
    
    /***/Build/Products/Beta/ReSchedule.app
    
    ==================================
    
    |  [Remote] JITError
    |  
    |  ==================================
    |  
    |  |  [Remote] CouldNotLoadInputStaticArchiveFile: Could not load static archive during preview: /***/Build/Products/Beta/FirebaseFirestoreInternal.framework/FirebaseFirestoreInternal
    |  |  
    |  |  path: /***/Build/Products/Beta/FirebaseFirestoreInternal.framework/FirebaseFirestoreInternal
    |  |  
    |  |  ==================================
    |  |  
    |  |  |  [Remote] XOJITError
    |  |  |  
    |  |  |  XOJITError: '/***/Build/Products/Beta/FirebaseFirestoreInternal.framework/FirebaseFirestoreInternal': Operation not permitted



== VERSION INFO:

    Tools: 16B40
    OS:    24B83
    PID:   5387
    Model: MacBook Pro
    Arch:  arm64e



== ENVIRONMENT:

    openFiles = [
        /***/Views/Start View/SurveyView.swift
    ]
    wantsNewBuildSystem = true
    newBuildSystemAvailable = true
    activeScheme = Beta
    activeRunDestination = My Mac variant macos arm64
    workspaceArena = [x]
    buildArena = [x]
    buildableEntries = [
        ReSchedule.app
    ]
    runMode = JIT Executor



== SELECTED RUN DESTINATION:

    macOS 15.1 | macos | arm64 | MacBook Pro | no proxy



== EXECUTION MODE OVERRIDES:

    Workspace JIT mode user setting: true
    Falling back to Dynamic Replacement: false

If using Swift Package Manager, the project's Package.resolved

Expand Package.resolved snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!

Metadata

Assignees

Labels

SwiftUIIssues directly related to Apple's SwiftUI frameworkXcode 16 - iOS 18api: firestoremacOSIssues or feature requests for macOS.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions