Fix overwrite issue with dependencies that have the same base dependencies #57
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When adding dependencies that have the same sub-dependencies i.e. AWSLambda and AWSS3 which both depend on AWSCore I was getting an exception such as the following:
Errno::EEXIST - File exists - /Users/bphilip1/Projects/ProgressiveApp/iOS/build/AWSCognito.framework
’/Users/bphilip1/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:522:in
block in mv' /Users/bphilip1/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:1571:in
block in fu_each_src_dest'/Users/bphilip1/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:1585:in
fu_each_src_dest0' /Users/bphilip1/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:1569:in
fu_each_src_dest'/Users/bphilip1/.rvm/rubies/ruby-2.3.1/lib/ruby/2.3.0/fileutils.rb:517:in
mv' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-rome-0.8.0/lib/cocoapods-rome/post_install.rb:28:in
block in build_for_iosish_platform'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-rome-0.8.0/lib/cocoapods-rome/post_install.rb:16:in
each' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-rome-0.8.0/lib/cocoapods-rome/post_install.rb:16:in
build_for_iosish_platform'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-rome-0.8.0/lib/cocoapods-rome/post_install.rb:54:in
block (2 levels) in <top (required)>' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-rome-0.8.0/lib/cocoapods-rome/post_install.rb:52:in
each'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-rome-0.8.0/lib/cocoapods-rome/post_install.rb:52:in
block in <top (required)>' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:111:in
block (3 levels) in run'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:142:in
message' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:103:in
block (2 levels) in run'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:101:in
each' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:101:in
block in run'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:142:in
message' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:100:in
run'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:493:in
run_plugins_post_install_hooks' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:472:in
perform_post_install_actions'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:121:in
install!' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/command/install.rb:37:in
run'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/claide-1.0.1/lib/claide/command.rb:334:in
run' /Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:50:in
run'/Users/bphilip1/.rvm/gems/ruby-2.3.1/gems/cocoapods-1.1.1/bin/pod:55:in
<top (required)>' /Users/bphilip1/.rvm/gems/ruby-2.3.1/bin/pod:23:in
load'/Users/bphilip1/.rvm/gems/ruby-2.3.1/bin/pod:23:in
<main>' /Users/bphilip1/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in
eval'/Users/bphilip1/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `
This pull request fixes this problem by force overwriting the built dependency.