Add the weak linking for Xcode project (Carthage)

This commit is contained in:
DreamPiggy 2019-12-06 21:31:41 +08:00
parent 9976615510
commit edae2e27a5
1 changed files with 12 additions and 0 deletions

View File

@ -553,6 +553,12 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = (
"-weak_framework",
SwiftUI,
"-weak_framework",
Combine,
);
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@ -613,6 +619,12 @@
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
OTHER_LDFLAGS = (
"-weak_framework",
SwiftUI,
"-weak_framework",
Combine,
);
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";