[UserProjectIntegrator] Don't by affected by the order of projects in the workspace.

This commit is contained in:
Fabio Pelosin
2013-02-06 15:54:14 +01:00
parent 47a8a68fd9
commit ad7f1e6a8d

View File

@@ -78,13 +78,13 @@ module Pod
# @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