Skip to content

Commit

Permalink
[precompile] Fallback require of ext to prebuilt version.
Browse files Browse the repository at this point in the history
  • Loading branch information
alloy committed Oct 22, 2013
1 parent 911aa95 commit f93668f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/xcodeproj/project.rb
@@ -1,6 +1,14 @@
require 'fileutils'
require 'pathname'
require 'xcodeproj/xcodeproj_ext'

# In case a binary built for the current Ruby exists, use that, otherwise see
# if a prebuilt binary exists for the current platform and Ruby version.
begin
require 'xcodeproj/xcodeproj_ext'
rescue LoadError
require "xcodeproj/prebuilt/#{RUBY_PLATFORM}-#{RUBY_VERSION}/xcodeproj_ext"
end

require 'xcodeproj/project/object'
require 'xcodeproj/project/project_helper'
require 'xcodeproj/project/xcproj_helper'
Expand Down

0 comments on commit f93668f

Please sign in to comment.