Created
December 8, 2011 04:57
-
-
Save splhack/1446164 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/local/bin/macruby | |
require 'rubygems' | |
require 'xcodeproj' | |
projpath = ARGV[0] + "/Unity-iPhone.xcodeproj" | |
proj = Xcodeproj::Project.new(projpath) | |
proj.targets.each do |target| | |
next unless target.name == "Unity-iPhone" | |
target.buildConfigurations.each do |config| | |
config.buildSettings["GCC_VERSION"] = "com.apple.compilers.llvm.clang.1_0" | |
end | |
end | |
proj.save_as(projpath) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment