mergesort / Boutique

✨ A magical persistence library (and so much more) for state-driven iOS and Mac apps ✨
https://build.ms/boutique/docs
MIT License
920 stars 45 forks source link

_TtC6SQLite6Backup Error every launch #64

Open ericwaetke opened 5 months ago

ericwaetke commented 5 months ago

When launching my WatchOS SwiftUI project, the following error message is consistently displayed in the console:

objc[19928]: Class _TtC6SQLite6Backup is implemented in both /Library/Developer/CoreSimulator/Volumes/watchOS_21T214/Library/Developer/CoreSimulator/Profiles/Runtimes/watchOS 10.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/LinkServices.framework/LinkServices (0x1d5fe5500) and /Users/…/Library/Developer/CoreSimulator/Devices/7EB63DFA-4F58-4852-8D9B-381FA2CF3C44/data/Containers/Bundle/Application/3927FCD2-1849-4045-8EC8-BED8B82D404F/ClimateClock Watch App.app/ClimateClock Watch App (0x1002afc88). One of the two will be used. Which one is undefined.

This happens every time I launch the app, and I think it started happening right from the start, where I implemented Boutique.

In case it is relevant, this is how I initialized the store

import Boutique
import Foundation

extension Store where Item == NewsItem {
    static let newsStore = Store<NewsItem>(
        storage: SQLiteStorageEngine.default(appendingPath: "News"),
        cacheIdentifier: \.headline
    )
}

Environment:

Xcode version: 15.3 (15E204a) Boutique Package version: 2.4.3 WatchOS version: both 10.2 and 10.4

I don’t think this is a huge deal, as the app functions as expected I think, but it is a bit annoying and fills the debugger permanently.

If any information is missing, please tell me :) Thanks!