OK, the situation is rather simple (though un-solvable...):
I tried adding a custom Build Phase (run script), either by touch
ing the folder, or by creating a dummy file in the resources folder and deleting it afterwards, but none of that worked.
Any ideas?
What finally worked for me :
Copy Bundle Resources
Set the script as follows:
find "${SRCROOT}/path/to/resources/$1" -type f -print0 | xargs -0 touch
I have tested that if you change the last modification date of a file to now, Xcode will build the newer file in the bundle.
New a new run script build phase with your script, the script must run before Copy Bundle Resources
.
In the script, enumerate every resource file and use touch -m filename
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With