You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.xcconfig file that contains MACH_O_TYPE = staticlib and then $ export XCODE_XCCONFIG_FILE="$xcconfig" before running carthage build
In the project.yml reference the dependency file directly with framework: Carthage/Build/iOS/Static/XXX.framework of carthage: xxx
Add -all_load to the Core target's OTHER_LDFLAGS build setting (OTHER_LDFLAGS = $(inherited) -all_load in the Core target's .xcconfig)
The text was updated successfully, but these errors were encountered:
n8chur
changed the title
Should we use a static framework to import as many dependencies as possible?
Should we build dependencies as static and link them to the Core target to improve launch times?
Nov 15, 2018
This should increase application launch times significantly as the number of dependencies increases.
In theory this should be as easy as:
.xcconfig
file that containsMACH_O_TYPE = staticlib
and then$ export XCODE_XCCONFIG_FILE="$xcconfig"
before runningcarthage build
project.yml
reference the dependency file directly withframework: Carthage/Build/iOS/Static/XXX.framework
ofcarthage: xxx
-all_load
to the Core target'sOTHER_LDFLAGS
build setting (OTHER_LDFLAGS = $(inherited) -all_load
in the Core target's .xcconfig)The text was updated successfully, but these errors were encountered: