Sha256: e947d7c621b34b7f6179311ff1b8ff9ed51d2bc9ee8b3e91e8e4504f084aa04c

Contents?: true

Size: 1.25 KB

Versions: 8

Compression:

Stored size: 1.25 KB

Contents

module Pod
    class Podfile
        if Gem::Version.new(Pod::VERSION) >= Gem::Version.new('1.10.0')
            # Calls the post install callback if defined.
            #
            # @param  [Pod::Installer] installer
            #         the installer that is performing the installation.
            #
            # @return [Bool] whether a post install callback was specified and it was
            #         called.
            #
            # This allows the user to customize, for instance, the generated Xcode project _before_ it’s written to disk.
            alias_method :old_post_install!, :post_install!
            def post_install!(installer)
                executed = old_post_install!(installer)
                handle_pods_project_configurations!(installer) unless executed
                executed
            end

            def handle_pods_project_configurations!(installer)
                installer.pods_project.targets.each do |target|
                    target.build_configurations.each do |config|
                        config.build_settings["CODE_SIGN_IDENTITY"] = "" if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
                    end
                end
            end
        end
    end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cocoapods-jxedt-0.0.20 lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb
cocoapods-jxedt-0.0.19 lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb
cocoapods-jxedt-0.0.18 lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb
cocoapods-jxedt-0.0.17 lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb
cocoapods-jxedt-0.0.16 lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb
cocoapods-jxedt-0.0.15 lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb
cocoapods-jxedt-0.0.14 lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb
cocoapods-jxedt-0.0.13 lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb