AdvancediOS
AdvancediOS copied to clipboard
Should we build dependencies as static and link them to the Core target to improve launch times?
This should increase application launch times significantly as the number of dependencies increases.
In theory this should be as easy as:
- Write a script that creates a temporary
.xcconfigfile that containsMACH_O_TYPE = staticliband then$ export XCODE_XCCONFIG_FILE="$xcconfig"before runningcarthage build - In the
project.ymlreference the dependency file directly withframework: Carthage/Build/iOS/Static/XXX.frameworkofcarthage: xxx - Add
-all_loadto the Core target'sOTHER_LDFLAGSbuild setting (OTHER_LDFLAGS = $(inherited) -all_loadin the Core target's .xcconfig)
I started working on this on the static-core branch.
I'm not seeing an improvement in launch times. I'll have to try this again once more dependencies are added.