Skip to content

Commit

Permalink
Merge pull request CocoaPods#68 from jugutier/master
Browse files Browse the repository at this point in the history
Enhance regex to allow Pods in the pathname
  • Loading branch information
orta authored Nov 5, 2018
2 parents b9fcae3 + 8abc29e commit dd4d0e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/cocoapods-rome/post_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ def copy_dsym_files(dsym_destination, configuration)

# Make sure the device target overwrites anything in the simulator build, otherwise iTunesConnect
# can get upset about Info.plist containing references to the simulator SDK
frameworks = Pathname.glob("build/*/*/*.framework").reject { |f| f.to_s =~ /Pods.*\.framework/ }
frameworks += Pathname.glob("build/*.framework").reject { |f| f.to_s =~ /Pods.*\.framework/ }
frameworks = Pathname.glob("build/*/*/*.framework").reject { |f| f.to_s =~ /Pods[^.]+\.framework/ }
frameworks += Pathname.glob("build/*.framework").reject { |f| f.to_s =~ /Pods[^.]+\.framework/ }

resources = []

Pod::UI.puts "Built #{frameworks.count} #{'frameworks'.pluralize(frameworks.count)}"

destination.rmtree if destination.directory?
Expand Down

0 comments on commit dd4d0e1

Please sign in to comment.