Skip to content

Commit

Permalink
[Project] Use the relative path for the Podfile.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Aug 25, 2012
1 parent 44661e5 commit ca2bbbd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/cocoapods/project.rb
Expand Up @@ -16,7 +16,8 @@ class Project < Xcodeproj::Project

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
Expand Down
3 changes: 2 additions & 1 deletion spec/unit/project_spec.rb
Expand Up @@ -16,7 +16,8 @@ def find_object(conditions)
'isa' => 'PBXFileReference',
'name' => 'Podfile',
'sourceTree' => 'SOURCE_ROOT',
'xcLanguageSpecificationIdentifier' => 'xcode.lang.ruby'
'xcLanguageSpecificationIdentifier' => 'xcode.lang.ruby',
'path' => '../Podfile'
}).should.not == nil
end

Expand Down

0 comments on commit ca2bbbd

Please sign in to comment.