Skip to content

Commit

Permalink
[UserProjectIntegrator] Don't by affected by the order of projects in…
Browse files Browse the repository at this point in the history
… the workspace.
  • Loading branch information
fabiopelosin committed Feb 6, 2013
1 parent 47a8a68 commit ad7f1e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cocoapods/installer/user_project_integrator.rb
Expand Up @@ -78,13 +78,13 @@ def integrate!
# @return [void]
#
def create_workspace
projpaths = [sandbox.project_path, *user_project_paths].map do |path|
projpaths = [*user_project_paths, sandbox.project_path].map do |path|
path.relative_path_from(workspace_path.dirname).to_s
end.uniq

if workspace_path.exist?
current_workspace = Xcodeproj::Workspace.new_from_xcworkspace(workspace_path)
if current_workspace.projpaths != projpaths
if current_workspace.projpaths.sort != projpaths.sort
workspace = Xcodeproj::Workspace.new(*projpaths)
workspace.save_as(workspace_path)
end
Expand Down

0 comments on commit ad7f1e6

Please sign in to comment.