@@ -13,8 +13,9 @@ def initialize(installer_context)
13
13
end
14
14
15
15
def run
16
+ return if @installer_context . sandbox . is_a? ( Pod ::PrebuildSandbox )
17
+
16
18
require_relative "../pod-binary/helper/feature_switches"
17
- return if Pod . is_prebuild_stage
18
19
19
20
log_section "🚀 Prebuild frameworks"
20
21
ensure_valid_podfile
@@ -25,6 +26,8 @@ def run
25
26
Pod ::UI . section ( "Validate prebuilt cache" ) { validate_cache }
26
27
prebuild! if Pod ::Podfile ::DSL . prebuild_job?
27
28
reset_environment
29
+
30
+ PodPrebuild ::Env . next_stage!
28
31
log_section "🤖 Resume pod installation"
29
32
require_relative "../pod-binary/integration"
30
33
end
@@ -54,7 +57,6 @@ def ensure_valid_podfile
54
57
55
58
def prepare_environment
56
59
Pod ::UI . puts "Prepare environment"
57
- Pod . is_prebuild_stage = true
58
60
Pod ::Podfile ::DSL . enable_prebuild_patch true # enable sikpping for prebuild targets
59
61
Pod ::Installer . force_disable_integration true # don't integrate targets
60
62
Pod ::Config . force_disable_write_lockfile true # disbale write lock file for perbuild podfile
@@ -63,7 +65,6 @@ def prepare_environment
63
65
64
66
def reset_environment
65
67
Pod ::UI . puts "Reset environment"
66
- Pod . is_prebuild_stage = false
67
68
Pod ::Installer . force_disable_integration false
68
69
Pod ::Podfile ::DSL . enable_prebuild_patch false
69
70
Pod ::Config . force_disable_write_lockfile false
0 commit comments