Skip to content

Instantly share code, notes, and snippets.

@splhack
Created December 8, 2011 04:57
Show Gist options
  • Save splhack/1446164 to your computer and use it in GitHub Desktop.
Save splhack/1446164 to your computer and use it in GitHub Desktop.
#!/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