Skip to content

Commit

Permalink
Fixes #11: include another Type of PBXTargetDependency
Browse files Browse the repository at this point in the history
  • Loading branch information
临寒 committed Sep 6, 2014
1 parent ef1ac17 commit a91179b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xUnique.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def __unique_target(self, target_hex):
self.__unique_build_configuration_list(target_hex, bcl_hex)
dependencies_list = current_node.get('dependencies')
if dependencies_list:
self.vprint('uniquify PBXTargetDependency')
for dependency_hex in dependencies_list:
self.__unique_target_dependency(target_hex, dependency_hex)
build_phases_list = current_node['buildPhases']
Expand All @@ -343,8 +344,11 @@ def __unique_target(self, target_hex):

def __unique_target_dependency(self, parent_hex, target_dependency_hex):
'''PBXTargetDependency'''
target_hex = self.nodes[target_dependency_hex]['target']
self.__set_to_result(parent_hex, target_dependency_hex, self.__result[target_hex]['path'])
target_hex = self.nodes[target_dependency_hex].get('target')
if target_hex:
self.__set_to_result(parent_hex, target_dependency_hex, self.__result[target_hex]['path'])
else:
self.__set_to_result(parent_hex, target_dependency_hex, 'name')
self.__unique_container_item_proxy(target_dependency_hex, self.nodes[target_dependency_hex]['targetProxy'])

def __unique_container_item_proxy(self, parent_hex, container_item_proxy_hex):
Expand Down

0 comments on commit a91179b

Please sign in to comment.