podspec: silence 'will be run during every build' warning on Mirror script
The Mirror darwin/{Camera,Video} script is intentionally always-run so
darwin/ edits land in the next build without a manual pod install
(reason already in the prepare_command comment block). Xcode warns when
a script phase declares no outputs; opt out of its dependency analysis
via :always_out_of_date instead of enumerating outputs we don't actually
want to gate on.
This commit is contained in:
@@ -21,6 +21,11 @@ CMD
|
|||||||
s.script_phases = [{
|
s.script_phases = [{
|
||||||
:name => 'Mirror darwin/{Camera,Video}',
|
:name => 'Mirror darwin/{Camera,Video}',
|
||||||
:execution_position => :before_compile,
|
:execution_position => :before_compile,
|
||||||
|
# We want this to run every build (the comment above explains why),
|
||||||
|
# so opt out of Xcode's dependency analysis instead of trying to
|
||||||
|
# enumerate inputs/outputs. Silences the "will be run during every
|
||||||
|
# build" warning without changing semantics.
|
||||||
|
:always_out_of_date => '1',
|
||||||
:script => <<-CMD
|
:script => <<-CMD
|
||||||
set -e
|
set -e
|
||||||
for MOD in Camera Video; do
|
for MOD in Camera Video; do
|
||||||
|
|||||||
Reference in New Issue
Block a user