iOS - Prevent unnecessary recompilation

Hi guys, I’m using Swift Scripting and I have setup a build step to generate API.swift. It all works well but it usually takes 5 seconds to run the script even when there are no changes. I’m wondering if this step here Installation - Client (iOS) - Apollo GraphQL Docs applies when using Swift Scripting or only for the other mechanisms.

If it does apply, were you guys able to not have the script run when no changes are made to any graphql file?

Thank you!