Class: Pod::Podfile

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods-jxedt/binary/podfile_dsl.rb,
lib/cocoapods-jxedt/binary/helper/podfile_options.rb,
lib/cocoapods-jxedt/binary/helper/target_definition.rb,
lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb

Defined Under Namespace

Modules: DSL Classes: TargetDefinition

Instance Method Summary collapse

Instance Method Details

#handle_pods_project_configurations!(installer) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb', line 20

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

#old_post_install!Bool

Calls the post install callback if defined.

This allows the user to customize, for instance, the generated Xcode project before it’s written to disk.

Parameters:

  • installer (Pod::Installer)

    the installer that is performing the installation.

Returns:

  • (Bool)

    whether a post install callback was specified and it was called.



13
# File 'lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb', line 13

alias_method :old_post_install!, :post_install!

#post_install!(installer) ⇒ Object



14
15
16
17
18
# File 'lib/cocoapods-jxedt/binary/helper/podfile_post_install_hook.rb', line 14

def post_install!(installer)
    executed = old_post_install!(installer)
    handle_pods_project_configurations!(installer) unless executed
    executed
end