File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -144,10 +144,10 @@ def build_static_library_for_ios(output)
144
144
static_libs = static_libs_in_sandbox ( 'build' ) + static_libs_in_sandbox ( 'build-sim' ) + vendored_libraries
145
145
libs = ios_architectures . map do |arch |
146
146
library = "#{ @static_sandbox_root } /build/package-#{ arch } .a"
147
- `libtool -arch_only #{ arch } -static -o #{ library } #{ static_libs . join ( ' ' ) } `
148
- library
149
- end
150
-
147
+ `libtool -arch_only #{ arch } -static -o #{ library } #{ static_libs . join ( ' ' ) } 2> /dev/null `
148
+ library if File . exist? ( library )
149
+ end . compact
150
+
151
151
`lipo -create -output #{ output } #{ libs . join ( ' ' ) } `
152
152
end
153
153
@@ -290,7 +290,7 @@ def vendored_libraries
290
290
libs = file_accessors . flat_map ( &:vendored_static_frameworks ) . map { |f | f + f . basename ( '.*' ) } || [ ]
291
291
libs += file_accessors . flat_map ( &:vendored_static_libraries )
292
292
@vendored_libraries = libs . compact . map ( &:to_s )
293
- puts "Final vendored libraries: #{ @vendored_libraries } "
293
+ puts "Vendored libraries: #{ @vendored_libraries } "
294
294
295
295
@vendored_libraries
296
296
end
You can’t perform that action at this time.
0 commit comments