Skip to content

Commit 448bbe3

Browse files
committed
Removed SWIFT_PACKAGE flag
1 parent cec8283 commit 448bbe3

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

CryptomatorCryptoLib.xcodeproj/project.pbxproj

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@
496496
GCC_NO_COMMON_BLOCKS = YES;
497497
GCC_OPTIMIZATION_LEVEL = 0;
498498
GCC_PREPROCESSOR_DEFINITIONS = (
499-
"SWIFT_PACKAGE=1",
500499
"DEBUG=1",
500+
"$(inherited)",
501501
);
502502
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
503503
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
@@ -512,7 +512,7 @@
512512
ONLY_ACTIVE_ARCH = YES;
513513
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=100 -Xfrontend -warn-long-function-bodies=100";
514514
SDKROOT = iphoneos;
515-
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "SWIFT_PACKAGE DEBUG";
515+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
516516
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
517517
VERSIONING_SYSTEM = "apple-generic";
518518
VERSION_INFO_PREFIX = "";
@@ -560,8 +560,8 @@
560560
GCC_C_LANGUAGE_STANDARD = gnu11;
561561
GCC_NO_COMMON_BLOCKS = YES;
562562
GCC_PREPROCESSOR_DEFINITIONS = (
563-
"SWIFT_PACKAGE=1",
564563
"DEBUG=1",
564+
"$(inherited)",
565565
);
566566
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
567567
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
@@ -575,7 +575,6 @@
575575
MTL_FAST_MATH = YES;
576576
OTHER_SWIFT_FLAGS = "-Xfrontend -warn-long-expression-type-checking=100 -Xfrontend -warn-long-function-bodies=100";
577577
SDKROOT = iphoneos;
578-
SWIFT_ACTIVE_COMPILATION_CONDITIONS = SWIFT_PACKAGE;
579578
SWIFT_COMPILATION_MODE = wholemodule;
580579
SWIFT_OPTIMIZATION_LEVEL = "-O";
581580
VALIDATE_PRODUCT = YES;

Sources/CryptomatorCryptoLib/Cryptor.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
import CommonCrypto
1010
import Foundation
11-
#if SWIFT_PACKAGE
12-
import Base32
13-
#else
11+
#if COCOAPODS
1412
import SwiftBase32
13+
#else
14+
import Base32
1515
#endif
1616

1717
public extension Data {

0 commit comments

Comments
 (0)