mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 19:43:09 +00:00
🗜 Shrink binary by excluding swift static libs
https://medium.com/livefront/how-to-add-a-dynamic-swift-framework-to-a-command-line-tool-bab6426d6c31#fcec
This commit is contained in:
parent
817bab29b5
commit
a9c38fbed1
1 changed files with 4 additions and 0 deletions
|
@ -760,6 +760,8 @@
|
||||||
LD_RUNPATH_SEARCH_PATHS = "@executable_path/. @executable_path/MasKit.framework/Versions/Current/Frameworks /Library/Frameworks /Library/Frameworks/MasKit.framework/Versions/Current/Frameworks $(inherited)";
|
LD_RUNPATH_SEARCH_PATHS = "@executable_path/. @executable_path/MasKit.framework/Versions/Current/Frameworks /Library/Frameworks /Library/Frameworks/MasKit.framework/Versions/Current/Frameworks $(inherited)";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = "com.mphys.mas-cli";
|
PRODUCT_BUNDLE_IDENTIFIER = "com.mphys.mas-cli";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
|
||||||
|
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "App/mas-cli-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "App/mas-cli-Bridging-Header.h";
|
||||||
SWIFT_VERSION = 4.2;
|
SWIFT_VERSION = 4.2;
|
||||||
};
|
};
|
||||||
|
@ -779,6 +781,8 @@
|
||||||
LD_RUNPATH_SEARCH_PATHS = "@executable_path/. @executable_path/MasKit.framework/Versions/Current/Frameworks /Library/Frameworks /Library/Frameworks/MasKit.framework/Versions/Current/Frameworks $(inherited)";
|
LD_RUNPATH_SEARCH_PATHS = "@executable_path/. @executable_path/MasKit.framework/Versions/Current/Frameworks /Library/Frameworks /Library/Frameworks/MasKit.framework/Versions/Current/Frameworks $(inherited)";
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = "com.mphys.mas-cli";
|
PRODUCT_BUNDLE_IDENTIFIER = "com.mphys.mas-cli";
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
|
SWIFT_FORCE_DYNAMIC_LINK_STDLIB = YES;
|
||||||
|
SWIFT_FORCE_STATIC_LINK_STDLIB = NO;
|
||||||
SWIFT_OBJC_BRIDGING_HEADER = "App/mas-cli-Bridging-Header.h";
|
SWIFT_OBJC_BRIDGING_HEADER = "App/mas-cli-Bridging-Header.h";
|
||||||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
||||||
SWIFT_VERSION = 4.2;
|
SWIFT_VERSION = 4.2;
|
||||||
|
|
Loading…
Reference in a new issue