Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use Firebase with previews #14178

Open
girishw opened this issue Nov 26, 2024 · 4 comments
Open

Cannot use Firebase with previews #14178

girishw opened this issue Nov 26, 2024 · 4 comments
Assignees
Labels
api: firestore macOS Issues or feature requests for macOS. SwiftUI Issues directly related to Apple's SwiftUI framework Xcode 16 - iOS 18

Comments

@girishw
Copy link

girishw commented Nov 26, 2024

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!
@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@paulb777
Copy link
Member

This is likely related to #14134 and #13603. Using the legacy preview may be a workaround.

We've filed a feedback with Apple and will see if we can escalate.

@paulb777 paulb777 added SwiftUI Issues directly related to Apple's SwiftUI framework Xcode 16 - iOS 18 labels Nov 27, 2024
@paulb777
Copy link
Member

The Xcode 16.2 release notes show multiple preview issue fixed. Is this one?

@Joebayld
Copy link

The Xcode 16.2 release notes show multiple preview issue fixed. Is this one?

I tried it - this is still an issue with Xcode 16.2.

@paulb777 paulb777 added macOS Issues or feature requests for macOS. and removed needs-info labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: firestore macOS Issues or feature requests for macOS. SwiftUI Issues directly related to Apple's SwiftUI framework Xcode 16 - iOS 18
Projects
None yet
Development

No branches or pull requests

6 participants