novastone-media / MQTT-Client-Framework

iOS, macOS, tvOS native ObjectiveC MQTT Client Framework
Other
1.84k stars 466 forks source link

MQTTPersistence always present ? #591

Open fr3ns1s opened 3 years ago

fr3ns1s commented 3 years ago

iOS 14.4 - pod version: 0.15.3

i'm init the sessionManager like this:

    MQTTCoreDataPersistence *persistence = [[MQTTCoreDataPersistence alloc]init];
    persistence.persistent = NO;
    self.manager = [[MQTTSessionManager alloc] init];
    self.manager.session.persistence = persistence;
    self.manager.delegate = self;

but inside the log i'm reading:

[MQTTPersistence] Persistent store: /var/mobile/Containers/Data/Application/B3675593-6028-46DE-95FE-4A42E7D8659E/Documents/MQTTClient

this because i had this bug

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+entityForName: nil is not a legal NSPersistentStoreCoordinator for searching for entity name 'MQTTFlow''