I'm currently struggling with Xcodeproj to be able to add some libraries and change a few details in my Xcode project. I'm pretty new to Ruby and usually only use Xcode to compile my projects so here's where I am currently, trying to add CoreTelephony.framework so it appears in "link to binary with libraries" if i open the project in Xcode...
require 'rubygems'
require 'Xcodeproj'
buildPath = '/Users/matth/Desktop/buildiOS/'
origName = 'Unity-iPhoneOrig.xcodeproj'
destName = 'Unity-iPhoneMod.xcodeproj'
project = Xcodeproj::Project.new(buildPath + origName)
project::Object::AbstractTarget::add_system_framework("CoreTelephony.framework")
project.save(buildPath + destName)
... and it doesn't work, of course. If someone could give me a hand so I get started, it would be much appreciated!