Stacked Heaps!

buildphase

Xcode Run Scripts can take input/output file(s) list. It is one of the amazing feature to optimise build process. In my opinion, it is well known but frequently unused.

You are providing list of files to run a script. In this case, you don't need to run SwiftLint on a non-swift file(s). This will be particularly useful if you have a large number of non-Swift data files.

To get started, provide input file/files and output file/files in the Run Script. Check Based on dependency analysis option in the Run Script. This will run the script only if the input has changed.

Create list by file-types:

$PROJECT_DIR/$SCRIPT_LOCATION/input_output_list_for_file_types.sh $FILE_NAME "$TYPE_1 $TYPE_2" $OPTIONAL_OUTPUT_DIR

Gist – file type


#Xcode #Build #BuildPhase #RunScript #Performance


Discover tools, techniques, architectures and patterns to feed your curiosity.

Stacked Heaps!