Sha256: 1eeb97fc1ed8e2532a27848640b3ba8c3b5bb9eb7bb120447011b17dcb5449b8

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 Bytes

Contents

Pod::HooksManager.register('cocoapods-no-dev-schemes', :post_install) do |context, user_options|
  require 'fileutils'

  # we want to undo - https://github.com/CocoaPods/CocoaPods/pull/3600
  # So we need to undo this function:
  # https://github.com/CocoaPods/Xcodeproj/blob/27aecbfd66e883d1df616355347246b30fec551d/lib/xcodeproj/scheme.rb#L224-L244

  shared_scheme_path = "#{context.sandbox_root}/Pods.xcodeproj/xcshareddata/"
  if Dir.exist?(shared_scheme_path)

    # But I've not needed to undo it yet.
    # Happy to take PRs on moving it back into the users scheme.

    FileUtils.rm_r(shared_scheme_path)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cocoapods-no-dev-schemes-1.0.1 lib/cocoapods_plugin.rb