diff --git a/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin/update.rb b/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin/update.rb index bda4dff..2329009 100755 --- a/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin/update.rb +++ b/cocoapods-imy-bin/lib/cocoapods-imy-bin/command/bin/update.rb @@ -111,9 +111,12 @@ def self.load_local_podfile end target_dependencies.each do |target_dependency| - next unless target_dependency.is_a?(Hash) && - target_dependency.keys.first && - target_dependency.keys.first == local_dependency.keys.first + dp_hash_equal = target_dependency.is_a?(Hash) && + target_dependency.keys.first && + target_dependency.keys.first == local_dependency.keys.first + dp_str_equal = target_dependency.is_a?(String) && + target_dependency == local_dependency.keys.first + next unless dp_hash_equal || dp_str_equal target_dependencies.delete target_dependency break