Navigate to the Build Phases tab of your target. Locate the Run Script phase that's triggering the warning. add this line in 'touch "${BUILT_PRODUCTS_DIR}/generated_file.txt"' Build Phase run script
In the Output Files section, click the + button to add paths to the files your script '$(BUILT_PRODUCTS_DIR)/generated_file.txt'