Skip to content

Not running on real device (TestFlight) #1188

Open
@AlanFloyd

Description

@AlanFloyd

Swift version: 5
tvOS Deployment Targe 15.6
Integrated with Swift Package manager

I am facing the following issue: My app runs perfect and without any issue on Simulator, but when publishing with TestFlight the app crashes on Start, only flickering. In Xcode Organizar I see that the crash is with the statement

db = try Connection("(path)/db.sqlite3")

here the complete code:

import SQLite

var db: Connection!

`do {
let path = NSSearchPathForDirectoriesInDomains(
.documentDirectory, .userDomainMask, true
).first!

        db = try Connection("\(path)/db.sqlite3")
        
    } catch let parsingError {
        
        print ("ERROR", parsingError)
    }

`It seams that the database is not possible to create on real AppleTV. Any idea?

Many thanks for help
Dietmar

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions