Skip to content

Commit 398147c

Browse files
committed
move check earlier
1 parent dc3b369 commit 398147c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/cocoapods-binary/Prebuild.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ def install_when_cache_hit!
6969
# Build the needed framework files
7070
def prebuild_frameworks!
7171

72+
# check
73+
# give a early warning, instead of after compiling all the pods
74+
Prebuild.check_one_pod_should_have_only_one_target(self.pod_targets)
75+
7276
# build options
7377
sandbox_path = sandbox.root
7478
existed_framework_folder = sandbox.generate_framework_path
@@ -114,10 +118,6 @@ def prebuild_frameworks!
114118

115119
targets = targets.reject {|pod_target| sandbox.local?(pod_target.pod_name) }
116120

117-
# check
118-
# give a early warning, instead of after compiling all the pods
119-
120-
Prebuild.check_one_pod_should_have_only_one_target(self.pod_targets)
121121

122122
# build!
123123
Pod::UI.puts "Prebuild frameworks (total #{targets.count})"

0 commit comments

Comments
 (0)