Method: Pod::Podfile::DSL#script_phase
- Defined in:
- lib/cocoapods-core/podfile/dsl.rb
permalink #script_phase(options) ⇒ void
This method returns an undefined value.
Adds a script phase to be integrated with this target. A script phase can be used to execute an arbitrary script that can use all Xcode environment variables during execution. A target may include multiple script phases which they will be added in the order they were declared. Deleting a script phase will effectively remove it from the target if it has been added previously.
464 465 466 467 468 |
# File 'lib/cocoapods-core/podfile/dsl.rb', line 464 def script_phase() raise Informative, 'Script phases can only be added within target definitions.' if current_target_definition.root? raise Informative, 'Script phases cannot be added to abstract targets.' if current_target_definition.abstract? current_target_definition.store_script_phase() end |