Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

Commit 1a99ba0

Browse files
committed
fix core data related crash
1 parent 2762bf3 commit 1a99ba0

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

TUM Campus App.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,11 +1179,11 @@
11791179
CODE_SIGN_IDENTITY = "Apple Development";
11801180
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
11811181
CODE_SIGN_STYLE = Automatic;
1182-
CURRENT_PROJECT_VERSION = 49;
1182+
CURRENT_PROJECT_VERSION = 50;
11831183
DEVELOPMENT_TEAM = 2J3C6P6X3N;
11841184
INFOPLIST_FILE = "TUM Campus App/Info.plist";
11851185
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
1186-
MARKETING_VERSION = 3.11;
1186+
MARKETING_VERSION = 3.12;
11871187
PRODUCT_BUNDLE_IDENTIFIER = de.tum.tca;
11881188
PRODUCT_NAME = "$(TARGET_NAME)";
11891189
PROVISIONING_PROFILE_SPECIFIER = "";
@@ -1203,11 +1203,11 @@
12031203
CODE_SIGN_IDENTITY = "Apple Development";
12041204
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
12051205
CODE_SIGN_STYLE = Automatic;
1206-
CURRENT_PROJECT_VERSION = 49;
1206+
CURRENT_PROJECT_VERSION = 50;
12071207
DEVELOPMENT_TEAM = 2J3C6P6X3N;
12081208
INFOPLIST_FILE = "TUM Campus App/Info.plist";
12091209
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
1210-
MARKETING_VERSION = 3.11;
1210+
MARKETING_VERSION = 3.12;
12111211
PRODUCT_BUNDLE_IDENTIFIER = de.tum.tca;
12121212
PRODUCT_NAME = "$(TARGET_NAME)";
12131213
PROVISIONING_PROFILE_SPECIFIER = "";

TUM Campus App.xcodeproj/xcshareddata/xcschemes/TUM Campus App.xcscheme

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@
8282
argument = "-com.apple.CoreData.SQLDebug 1"
8383
isEnabled = "NO">
8484
</CommandLineArgument>
85+
<CommandLineArgument
86+
argument = "-com.apple.CoreData.ConcurrencyDebug 1"
87+
isEnabled = "NO">
88+
</CommandLineArgument>
8589
<CommandLineArgument
8690
argument = "-logout"
8791
isEnabled = "NO">

TUM Campus App/Entity/EntityImporter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ final class Importer<EntityType: Entity, EntityContainer: Decodable, DecoderType
4949
}()
5050

5151
lazy var context: NSManagedObjectContext = {
52-
let context = coreDataStack.newBackgroundContext()
52+
let context = coreDataStack.viewContext
5353
context.mergePolicy = NSMergePolicy.mergeByPropertyObjectTrump
5454
return context
5555
}()

TUM Campus App/Entity/NewsImporter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class NewsImporter {
3636
return fetchedResultsController
3737
}()
3838
let context: NSManagedObjectContext = {
39-
let context = coreDataStack.newBackgroundContext()
39+
let context = coreDataStack.viewContext
4040
context.mergePolicy = NSMergePolicy.mergeByPropertyObjectTrump
4141
return context
4242
}()

0 commit comments

Comments
 (0)