For me, the "not working" effect was caused by a directory path lookup failure in my script.
If you run your script at your target's Build Phases, A relative directory path like this will work:
INFO="MyApp/Info.plist"
However in Pre-Actions it fails silently.
Instead, you must use an absolute directory path like this:
INFO="${PROJECT_DIR}/MyApp/Info.plist"
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: