If you already have or are ready to make Ruby available for your build system, you can use this solution .
Install xcodeproj gem on your build system
sudo gem install xcodeproj
and then integrate the following ruby script (renaming the xcodeproj path) into your project.
#!/usr/bin/env ruby require 'xcodeproj' xcproj = Xcodeproj::Project.open("platforms/ios/schemedemo.xcodeproj") xcproj.recreate_user_schemes xcproj.save
The article explains how to make it part of the cordon hook, if you do, I just called the ruby directly from my Jenkins build.
This works because when you recreate proj files, you destroy the schemas, so you need to recreate them.
toxaq source share