Skip to content

Commit f3e5f63

Browse files
committed
Disable BUILD_LIBRARY_FOR_DISTRIBUTION for tests, or compilation will crash
1 parent 3e911ed commit f3e5f63

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

config/CryptoSwift-Test.xcconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
#include "CryptoSwift-Shared.xcconfig"
99

1010
ENABLE_TESTABILITY = YES
11+
12+
// Disable for tests. https://twitter.com/krzyzanowskim/status/1191515868401983489
13+
BUILD_LIBRARY_FOR_DISTRIBUTION = NO

config/Tests-Shared.xcconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/Frameworks @loader_path/
1414
PRODUCT_BUNDLE_IDENTIFIER = com.krzyzanowskim.${PRODUCT_NAME:rfc1034identifier}
1515

1616
OTHER_SWIFT_FLAGS = $(inherited) -Xfrontend -debug-time-function-bodies
17+
18+
// Disable for tests. https://twitter.com/krzyzanowskim/status/1191515868401983489
19+
BUILD_LIBRARY_FOR_DISTRIBUTION = NO

0 commit comments

Comments
 (0)