Created
August 14, 2014 15:54
-
-
Save shanesmith/8b88720c19b910cc9900 to your computer and use it in GitHub Desktop.
Fix a Cordova-generated xcodproj not having any schemes defined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'xcodeproj' | |
path = ARGV.shift | |
xcproj = Xcodeproj::Project.open(path) | |
# Fix schemes not being defined | |
xcproj.recreate_user_schemes | |
xcproj.save |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, it's save my day 👍