I’m a bit new to xcodeproj and ruby as a whole.
I have a custom .xcconfig file. It’s in my repo and it comes externally. I’m trying to build a script which will create a configuration using it.
So far, I have
#!/usr/bin/ruby
require ‘xcodeproj’
filePath = ARGV[0]
project_path = “#{filePath}/App.xcodeproj”
project = Xcodeproj::Project.open(project_path)
project.add_build_configuration(“foo-debug-production”, :debug)
project.save
This puts the configuration file into Xcode right like I need it to, but it doesn’t link its associated .xcconfig file.
I’m poured over the documentation but I can’t get anything ese to work. Is there a chance I could get some help or direction in figuring out how to attach the .xcconfig file to its actual new configuration?
Thanks all!