Apparently, the Run Script is missing in my Xcode project so the buildtime.sh file was never executed. As a result, buildtime property was not updated. With the same buildtime, nothing was updated in the app.
Solution:
In Xcode, select your project and open the Build Phase tab. Click on the + icon on the top left to Add a New Build Phase. Select the new Run Script Phase and copy/paste the following to the new script:
script_file="buildtime.sh"
echo "Running a custom build phase script: $script_file"
unsecure_project_path=${PROJECT_DIR}
secure_project_path="${unsecure_project_path// /\ }"
eval ${secure_project_path}/${script_file}
scriptExitStatus=$?
echo "DONE with script: ${script_file} (exitStatus=${scriptExitStatus})\n\n"
exit "${scriptExitStatus}"
The Run Script should look like this:
