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
def initialize(*)
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')
@user_build_configurations = []
end
......
......@@ -16,7 +16,8 @@ describe 'Pod::Project' do
'isa' => 'PBXFileReference',
'name' => 'Podfile',
'sourceTree' => 'SOURCE_ROOT',
'xcLanguageSpecificationIdentifier' => 'xcode.lang.ruby'
'xcLanguageSpecificationIdentifier' => 'xcode.lang.ruby',
'path' => '../Podfile'
}).should.not == nil
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