Commit 2b4c37d3 authored by Eloy Duran's avatar Eloy Duran

Make compiling the source files work, thanks @ferrous26!

parent e3078191
*.swp
*.swo
*.rbo
.DS_Store
tmp
examples/Pods
......
desc "Compile the source files (as rbo files)"
task :compile do
Dir.glob("lib/**/*.rb").each do |file|
sh "macrubyc #{file} -C -o #{file}o"
end
end
......@@ -27,3 +27,4 @@ class Pathname
Dir.glob((self + pattern).to_s).map { |f| Pathname.new(f) }
end
end
require 'cocoa_pods/command/repo'
module Pod
class Command
class Setup < Command
......
require 'cocoa_pods/specification/set'
module Pod
class Specification
autoload :Set, 'cocoa_pods/specification/set'
def self.from_podfile(path)
if path.exist?
spec = new
......
......@@ -3,7 +3,12 @@ framework 'Foundation'
module Pod
module Xcode
class Project
TEMPLATES_DIR = Pathname.new(File.expand_path('../../../../xcode-project-templates', __FILE__))
# TODO this is a workaround for an issue with MacRuby with compiled files
# that makes the use of __FILE__ impossible.
#
#TEMPLATES_DIR = Pathname.new(File.expand_path('../../../../xcode-project-templates', __FILE__))
file = $LOADED_FEATURES.find { |file| file =~ %r{cocoa_pods/xcode/project\.rbo?$} }
TEMPLATES_DIR = Pathname.new(File.expand_path('../../../../xcode-project-templates', file))
# TODO see if we really need different templates for iOS and OS X
def self.ios_static_library
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment