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

Make compiling the source files work, thanks @ferrous26!

parent e3078191
*.swp *.swp
*.swo *.swo
*.rbo
.DS_Store .DS_Store
tmp tmp
examples/Pods 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 ...@@ -27,3 +27,4 @@ class Pathname
Dir.glob((self + pattern).to_s).map { |f| Pathname.new(f) } Dir.glob((self + pattern).to_s).map { |f| Pathname.new(f) }
end end
end end
require 'cocoa_pods/command/repo'
module Pod module Pod
class Command class Command
class Setup < Command class Setup < Command
......
require 'cocoa_pods/specification/set'
module Pod module Pod
class Specification class Specification
autoload :Set, 'cocoa_pods/specification/set'
def self.from_podfile(path) def self.from_podfile(path)
if path.exist? if path.exist?
spec = new spec = new
......
...@@ -3,7 +3,12 @@ framework 'Foundation' ...@@ -3,7 +3,12 @@ framework 'Foundation'
module Pod module Pod
module Xcode module Xcode
class Project 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 # TODO see if we really need different templates for iOS and OS X
def self.ios_static_library 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