PreviewProvider is not working.

Open
#1,211 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
sqlite, swift

Research direction

Start by reproducing the crash in a Swift Package Manager project on Xcode 14.3, focusing on the PreviewProvider and SQLite usage described in the issue. Inspect the reported stack frame in SqliteManager.swift:569 and compare preview execution with normal app execution. Done means the view renders in the canvas without crashing when SQLite is used.

Written by the indexing model from the issue text.

Description

I'm using version 0.13.3 on XCode 14.3 with Swift Package manager

I need to work with the canvas so I need to able to run the PreviewProvider. Whenever, SQLite is used on the View, the preview provider crashes

   libswiftCore.dylib            	    0x7ff80d615254 _assertionFailure(_:_:file:line:flags:) + 228
   MyAppName.            	       0x10dd9be2b getContents() + 267 (SqliteManager.swift:569)

The app working normally. I'm guessing we need some environmetalObject as in CoreData in PreviewProvider so that it works?? Does it work somehow?

Dominant language
Swift
Stars
10.2k
Forks
1.6k
Avg merge
6d 2h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stephencelis/SQLite.swift

All issues in stephencelis/SQLite.swift

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.