During "run script" phase of one of my build targets in Xcode, I read the file content of some previous dependant targets build results.
However, If I re-compile the project after deliberately modifying my target dependents, It appears that "run script" reads the older version of the file (when I read it from bash, I get the new result.) .. To overcome this problem I can modify one of target's sources or cleaning and compiling from scratch, but I wonder if there's any cache that stores data from "run script" phase that may cause this issue, and how it's possible to remove it.
Notice that the problem occurs only if all the "compile sources" of the target with the "run script" remain untouched, although I explicitly states the other dependent targets under "Target Dependency" section.
In short, I'd like to enforce running "run script" phase, even if target sources remained unchanged, because the result of this script may product an header file that requires re-compilation.