Actually based on configuration I want to remove and add one key in Info.plist. To make it dynamic. I have taken approach of Adding a script to accomplish this.
What I tried and what problem I faced is here.
Added a Build Script: Added script using Editor -> Add Build Phase -> Add Run script.
Output: I can see key is deleted in Xcode file but when I am going to see it in iPA key is still there. So, I believe Build system has copied that file before deleting the key. Looks like issue in sequence of executing script.
Pre-Action Build scheme is looks promising.
Problem: I added simple echo statement in Pre-Action script. But I am not able to see it’s output. On few question of stack overflow I found that we can see it on console.app. But I tried lot I am not able to see it in Console.app. I am using Xcode 5.1.1.
Anybody can point out where can I see output of my pre-action script?
External Build System: I also tried this Running script only for an 'Archive' build in Xcode 4
Problem in solution provided in above link:
- Not sure how to provide path of script file relative to project
- Not able to find environment variable like ${INFOPLIST_File}