Permalink
Browse files

[Project] Use the relative path for the Podfile.

  • Loading branch information...
1 parent 44661e5 commit ca2bbbda521479c540fb4118dd70da758e0de172 @fabiopelosin fabiopelosin committed Aug 25, 2012
Showing with 4 additions and 2 deletions.
  1. +2 −1 lib/cocoapods/project.rb
  2. +2 −1 spec/unit/project_spec.rb
View
@@ -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
@@ -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

0 comments on commit ca2bbbd

Please sign in to comment.