Commit 9ee4b9b5 authored by Eloy Duran's avatar Eloy Duran

Make assigning the PBXProject#products= method work.

parent ffbb3b95
...@@ -88,6 +88,7 @@ module Pod ...@@ -88,6 +88,7 @@ module Pod
'SDKROOT' => 'macosx' 'SDKROOT' => 'macosx'
} }
} }
def self.build_settings(platform, scheme) def self.build_settings(platform, scheme)
settings = COMMON_BUILD_SETTINGS[:all].merge(COMMON_BUILD_SETTINGS[platform]) settings = COMMON_BUILD_SETTINGS[:all].merge(COMMON_BUILD_SETTINGS[platform])
settings['COPY_PHASE_STRIP'] = scheme == :debug ? 'NO' : 'YES' settings['COPY_PHASE_STRIP'] = scheme == :debug ? 'NO' : 'YES'
......
...@@ -32,7 +32,7 @@ module Pod ...@@ -32,7 +32,7 @@ module Pod
end end
def singular_name def singular_name
@name.singularize @options[:singular_name] || @name.singularize
end end
def singular_getter def singular_getter
...@@ -459,7 +459,7 @@ module Pod ...@@ -459,7 +459,7 @@ module Pod
class PBXProject < PBXObject class PBXProject < PBXObject
has_many :targets, :class => PBXNativeTarget has_many :targets, :class => PBXNativeTarget
has_one :products, :uuid => :productRefGroup, :class => PBXGroup has_one :products, :singular_name => :products, :uuid => :productRefGroup, :class => PBXGroup
end end
class PBXObjectList class PBXObjectList
......
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