Class: Pod::Podfile
- Inherits:
-
Object
- Object
- Pod::Podfile
- 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
- #handle_pods_project_configurations!(installer) ⇒ Object
-
#old_post_install! ⇒ Bool
Calls the post install callback if defined.
- #post_install!(installer) ⇒ Object
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.
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 |