Skip to content

Commit f963c05

Browse files
committed
Fixes debug configuration.
1 parent b2d2abe commit f963c05

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

RxDataSources.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -991,6 +991,7 @@
991991
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
992992
MTL_ENABLE_DEBUG_INFO = YES;
993993
ONLY_ACTIVE_ARCH = YES;
994+
OTHER_SWIFT_FLAGS = "-D DEBUG";
994995
SDKROOT = iphoneos;
995996
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
996997
TARGETED_DEVICE_FAMILY = "1,2";
@@ -1032,6 +1033,7 @@
10321033
GCC_WARN_UNUSED_VARIABLE = YES;
10331034
IPHONEOS_DEPLOYMENT_TARGET = 9.2;
10341035
MTL_ENABLE_DEBUG_INFO = NO;
1036+
OTHER_SWIFT_FLAGS = "";
10351037
SDKROOT = iphoneos;
10361038
TARGETED_DEVICE_FAMILY = "1,2";
10371039
VALIDATE_PRODUCT = YES;

Sources/DataSources/Differentiator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func indexSections<S: AnimatableSectionModelType>(sections: [S]) throws -> [S.Id
104104
for (i, section) in sections.enumerate() {
105105
guard indexedSections[section.identity] == nil else {
106106
#if DEBUG
107-
precondition(indexedSections[section.identity] == nil, "Section \(section) has already been indexed at \(indexedSections[section]!)")
107+
precondition(indexedSections[section.identity] == nil, "Section \(section) has already been indexed at \(indexedSections[section.identity]!)")
108108
#endif
109109
throw DifferentiatorError.DuplicateItem(item: section)
110110
}
@@ -127,7 +127,7 @@ func indexSectionItems<S: AnimatableSectionModelType>(sections: [S]) throws -> [
127127
for (j, item) in sections[i].items.enumerate() {
128128
guard indexedItems[item.identity] == nil else {
129129
#if DEBUG
130-
precondition(indexedItems[item.identity] == nil, "Item \(item) has already been indexed at \(indexedItems[item]!)" )
130+
precondition(indexedItems[item.identity] == nil, "Item \(item) has already been indexed at \(indexedItems[item.identity]!)" )
131131
#endif
132132
throw DifferentiatorError.DuplicateItem(item: item)
133133
}

0 commit comments

Comments
 (0)