Lane: analyze_app_build_time
Description
This will analyze build time for your app and help to make your code better
Usage
Update your Fastfile to contain the following code:
lane :analyze_app_build_time do |options|
scheme = options[:scheme] || @scheme
xcworkspace_name = options[:xcworkspace_name] || @scheme
sh "cd .. && xcodebuild -workspace #{xcworkspace_name}.xcworkspace -scheme #{scheme} clean build OTHER_SWIFT_FLAGS=\"-Xfrontend -debug-time-function-bodies\" | grep .[0-9]ms | grep -v ^0.[0-9]ms | sort -nr > culprits.txt"
end
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Lane Parameters
Key | Description |
---|---|
scheme | The project's scheme. Make sure it's marked as Shared. Defaults to @scheme |
xcworkspace_name | The name of the xcworkspace . Defaults to @scheme |