Thursday, July 4, 2024
HomeiOS Developmentios - Duplicate Class Implementation in SQLite inflicting objc Error in Xcode...

ios – Duplicate Class Implementation in SQLite inflicting objc[XXXXX] Error in Xcode Venture


I am encountering a problem in my iOS mission the place I am getting the next error messages within the console after I run my app:

objc[XXXXX]: Class _TtC6SQLite6Backup is carried out in each /System/Library/PrivateFrameworks/LinkServices.framework/LinkServices (0x20263ad48) and /non-public/var/containers/Bundle/Utility/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/SobrietyHelper.app/SobrietyHelper (0xXXXXXXXX). One of many two might be used. Which one is undefined.
objc[XXXXX]: Class _TtC6SQLite10Connection is carried out in each /System/Library/PrivateFrameworks/LinkServices.framework/LinkServices (0x20142f7a8) and /non-public/var/containers/Bundle/Utility/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/SobrietyHelper.app/SobrietyHelper (0xXXXXXXXX). One of many two might be used. Which one is undefined.
objc[XXXXX]: Class _TtC6SQLite9Statement is carried out in each /System/Library/PrivateFrameworks/LinkServices.framework/LinkServices (0x20142f878) and /non-public/var/containers/Bundle/Utility/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/SobrietyHelper.app/SobrietyHelper (0xXXXXXXXX). One of many two might be used. Which one is undefined.
objc[XXXXX]: Class _TtC6SQLite13DateFunctions is carried out in each /System/Library/PrivateFrameworks/LinkServices.framework/LinkServices (0x20263acb0) and /non-public/var/containers/Bundle/Utility/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/SobrietyHelper.app/SobrietyHelper (0xXXXXXXXX). One of many two might be used. Which one is undefined.
objc[XXXXX]: Class _TtC6SQLite12TableBuilder is carried out in each /System/Library/PrivateFrameworks/LinkServices.framework/LinkServices (0x20263ab10) and /non-public/var/containers/Bundle/Utility/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/SobrietyHelper.app/SobrietyHelper (0xXXXXXXXX). One of many two might be used. Which one is undefined.

Moreover, I am utilizing Amplify and Core Knowledge in my mission, and I’ve arrange my Core Knowledge stack as follows:

import CoreData
import Amplify
import AWSDataStorePlugin

struct PersistenceController {
static let shared = PersistenceController()

static var preview: PersistenceController = {
    let consequence = PersistenceController(inMemory: true)
    let viewContext = consequence.container.viewContext

    // Create pattern information for preview
    let newGoal = Aim(context: viewContext)
    newGoal.goalDays = 30
    newGoal.startDate = Date()

    let newRecord = DrinkRecord(context: viewContext)
    newRecord.rely = 3
    newRecord.date = Date()

    do {
        attempt viewContext.save()
    } catch {
        let nsError = error as NSError
        fatalError("Unresolved error (nsError), (nsError.userInfo)")
    }
    return consequence
}()

let container: NSPersistentContainer

init(inMemory: Bool = false) {
    container = NSPersistentContainer(title: "SobrietyHelper")
    if inMemory {
        container.persistentStoreDescriptions.first!.url = URL(fileURLWithPath: "/dev/null")
    }
    container.loadPersistentStores(completionHandler: { (storeDescription, error) in
        if let error = error as NSError? {
            fatalError("Unresolved error (error), (error.userInfo)")
        }
    })
    container.viewContext.automaticallyMergesChangesFromParent = true
    
    // Amplify configuration
    configureAmplify()
}

non-public func configureAmplify() {
    do {
        attempt Amplify.add(plugin: AWSDataStorePlugin(modelRegistration: AmplifyModels()))
        attempt Amplify.configure()
        print("Amplify configured with DataStore plugin")
    } catch {
        print("An error occurred organising Amplify: (error)")
    }
}

}

Steps I’ve Taken:

Clear Construct: Carried out clear and rebuilt the mission.

Simulator Reset: Erased all content material and settings within the simulator.

Checked for Duplicate Libraries: Verified in Hyperlink Binary With Libraries and located no duplicates.

Looked for SQLite in Venture: Used discover command and Xcode’s search, however no specific references to SQLite.swift.

Questions:

Is that this duplicate class implementation a vital situation for my app?

How can I resolve this error to keep away from potential runtime points?

Are there any recognized points with Amplify and Core Knowledge integration which may trigger this?

Any insights or recommendations can be significantly appreciated!

Thanks prematurely!



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments