Commit ca2bbbda authored by Fabio Pelosin's avatar Fabio Pelosin

[Project] Use the relative path for the Podfile.

parent 44661e54
...@@ -16,7 +16,8 @@ module Pod ...@@ -16,7 +16,8 @@ module Pod
def initialize(*) def initialize(*)
super super
main_group << files.new('path' => config.project_podfile.to_s, 'xcLanguageSpecificationIdentifier' => 'xcode.lang.ruby') podfile_path = config.project_podfile.relative_path_from(config.project_pods_root).to_s
main_group << files.new('path' => podfile_path, 'xcLanguageSpecificationIdentifier' => 'xcode.lang.ruby')
main_group << groups.new('name' => 'Pods') main_group << groups.new('name' => 'Pods')
@user_build_configurations = [] @user_build_configurations = []
end end
......
...@@ -16,7 +16,8 @@ describe 'Pod::Project' do ...@@ -16,7 +16,8 @@ describe 'Pod::Project' do
'isa' => 'PBXFileReference', 'isa' => 'PBXFileReference',
'name' => 'Podfile', 'name' => 'Podfile',
'sourceTree' => 'SOURCE_ROOT', 'sourceTree' => 'SOURCE_ROOT',
'xcLanguageSpecificationIdentifier' => 'xcode.lang.ruby' 'xcLanguageSpecificationIdentifier' => 'xcode.lang.ruby',
'path' => '../Podfile'
}).should.not == nil }).should.not == nil
end end
......
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