In a quest to automate the iOS app generation process, I am trying to set change the settings of a build target in an automated fashion outside of XCode. Specifically, I would like to set the Info.plist file for a target using a command or some other programatic approach. In essence, I would like to do the following but without the XCode GUI:
What I have tried:
- Using xcodeproj. I used this approach to create the target using a Ruby script but I have not seen an easy way to set the plist file. If this is possible with xcodeproj, this would be the ideal solution as I am already using it to create the target.
- Using xcodebuild such as in this answer. I did not have any luck with this method and I do not think the changes to the target variables are permanent anyway.
I am open to any methods for accomplishing this as long as they can be performed within code or a script.