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

Apple TV crashes on launch #1007

Closed
keeshux opened this issue Dec 13, 2024 · 3 comments · Fixed by #1016
Closed

Apple TV crashes on launch #1007

keeshux opened this issue Dec 13, 2024 · 3 comments · Fixed by #1016
Assignees
Labels
regression Used to work but doesn't anymore tvOS Related to tvOS app

Comments

@keeshux
Copy link
Member

keeshux commented Dec 13, 2024

Started with 3678 when PreferencesManager was introduced. #1003 didn't help. Core Data still crashes when loading the container:

container.loadPersistentStores {
    if let error = $1 {
        fatalError("Unable to load persistent store: \(error)")
    }
}

Maybe tvOS cannot store Core Data to App Group?

@keeshux keeshux converted this from a draft issue Dec 13, 2024
@keeshux keeshux added the regression Used to work but doesn't anymore label Dec 13, 2024
@keeshux keeshux added this to the 3.0.0 / 7. Release milestone Dec 13, 2024
@keeshux keeshux moved this from In Progress to Todo in 2024 Q1-Q4 Passepartout v3 Dec 13, 2024
@keeshux
Copy link
Member Author

keeshux commented Dec 14, 2024

Consider that Apple TV does not use preferences, so a temporary fix would be dropping PreferencesManager #if os(tvOS).

@keeshux keeshux assigned keeshux and unassigned keeshux Dec 14, 2024
@keeshux
Copy link
Member Author

keeshux commented Dec 15, 2024

Unable to create group documents directory: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “Documents” in the folder “Library”." UserInfo={NSFilePath=/private/var/mobile/Containers/Shared/AppGroup/62A67AAB-2D6D-4F09-BA0D-B8478EA06280/Library/Documents, NSURL=file:///private/var/mobile/Containers/Shared/AppGroup/62A67AAB-2D6D-4F09-BA0D-B8478EA06280/Library/Documents, NSUnderlyingError=0x301c08360 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}

@keeshux keeshux moved this from Todo to In Progress in 2024 Q1-Q4 Passepartout v3 Dec 15, 2024
@keeshux keeshux self-assigned this Dec 15, 2024
@keeshux
Copy link
Member Author

keeshux commented Dec 15, 2024

https://stackoverflow.com/questions/58977501/xcode-tvos-error-you-don-t-have-permission-to-save-the-file-filename-txt-in

It's very likely that logs are not saved either, they are just failing silently. In the end, the "Settings" view only shows the live logs (in memory).

@keeshux keeshux added the tvOS Related to tvOS app label Dec 15, 2024
@keeshux keeshux moved this from In Progress to Done in 2024 Q1-Q4 Passepartout v3 Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression Used to work but doesn't anymore tvOS Related to tvOS app
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant