Here is the code to create a target scheme.
scheme = Xcodeproj::XCScheme.new
scheme.add_build_target(target)
scheme.set_launch_target(target)
scheme.save_as(xcode_proj_dir, name)
How to create a scheme for Today Extension?
There are some differences: Today Extension scheme locates in xcuserdata
instead of xcshareddata
and Executable
should be Ask on Launch
.