Skip to content

Commit

Permalink
Merge pull request #46 from mjholgate/fix-itunes-connect-uploads
Browse files Browse the repository at this point in the history
Fix issue when uploading built frameworks to ITC.
  • Loading branch information
neonichu authored Aug 8, 2016
2 parents e1f77de + 41dd72f commit 46feede
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 @@ -62,8 +62,10 @@ def xcodebuild(sandbox, target, sdk='macosx', deployment_target=nil)

raise Pod::Informative, 'The build directory was not found in the expected location.' unless build_dir.directory?

frameworks = Pathname.glob("#{build_dir}/**/*.framework").reject { |f| f.to_s =~ /Pods.*\.framework/ }

# 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/ }
Pod::UI.puts "Built #{frameworks.count} #{'frameworks'.pluralize(frameworks.count)}"

destination.rmtree if destination.directory?
Expand Down

0 comments on commit 46feede

Please sign in to comment.