cocoapods-bb-xcframework 0.2.7.1 → 0.2.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ff188e2f9fea6dd316ea3b6457e5cdca2229cefaac0274370cc6076ba4eb9dab
|
|
4
|
+
data.tar.gz: 1dc04ad72267df21e5da59ffaeae13a6b5695abc033b90c5d6dd819ead560108
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60d70707d601d17160af83cf7ced3fdcf0466d97d1dfe29af81b3e02c4676170518a692e49ec8f44714a1154b7fb3d1369cd8545b449e35ba20e3e1baa34048a
|
|
7
|
+
data.tar.gz: 3385c50216a54cb109bec510654aa2718c256a1fb8edf71a505928046f4e88b49c9228298980333e9b563eab04a167d1d3c4a84455cdc3aa49851ce7e0cfc915
|
|
@@ -61,16 +61,17 @@ module Pod
|
|
|
61
61
|
else
|
|
62
62
|
skip_install = 'NO'
|
|
63
63
|
end
|
|
64
|
-
if not project.nil?
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
else
|
|
72
|
-
|
|
73
|
-
end
|
|
64
|
+
# if not project.nil?
|
|
65
|
+
# # if not scheme.nil?
|
|
66
|
+
# # command = "xcodebuild #{defines} BUILD_DIR=#{build_dir} BUILD_LIBRARY_FOR_DISTRIBUTION=YES clean build -configuration #{configuration} -project '#{project}' -scheme '#{scheme}' -destination '#{destination}' ARCHS='#{archs}' SKIP_INSTALL=#{skip_install} | xcpretty 2>&1"
|
|
67
|
+
# # else
|
|
68
|
+
# # command = "xcodebuild #{defines} BUILD_DIR=#{build_dir} BUILD_LIBRARY_FOR_DISTRIBUTION=YES clean build -configuration #{configuration} -alltargets -scheme '#{scheme}' -destination '#{destination}' ARCHS='#{archs}' SKIP_INSTALL=#{skip_install} | xcpretty 2>&1"
|
|
69
|
+
# # end
|
|
70
|
+
# command = "xcodebuild #{defines} BUILD_DIR=#{build_dir} BUILD_LIBRARY_FOR_DISTRIBUTION=YES clean build -configuration #{configuration} -alltargets -scheme '#{scheme}' -destination '#{destination}' ARCHS='#{archs}' SKIP_INSTALL=#{skip_install} | xcpretty 2>&1"
|
|
71
|
+
# else
|
|
72
|
+
# command = "xcodebuild #{defines} BUILD_DIR=#{build_dir} BUILD_LIBRARY_FOR_DISTRIBUTION=YES clean build -configuration #{configuration} -alltargets -destination '#{destination}' ARCHS='#{archs}' SKIP_INSTALL=#{skip_install} | xcpretty 2>&1"
|
|
73
|
+
# end
|
|
74
|
+
command = "xcodebuild #{defines} BUILD_DIR=#{build_dir} BUILD_LIBRARY_FOR_DISTRIBUTION=YES clean build -configuration #{configuration} -alltargets -destination '#{destination}' ARCHS='#{archs}' SKIP_INSTALL=#{skip_install}"
|
|
74
75
|
# UI.puts("XBuilder command:#{command}")
|
|
75
76
|
# output = `#{command}`.lines.to_a
|
|
76
77
|
# Dir.chdir pwd
|
|
@@ -89,22 +90,54 @@ module Pod
|
|
|
89
90
|
# Allow disabling xcpretty via env
|
|
90
91
|
use_pretty = ENV['XBUILDER_NOPRETTY'] != '1'
|
|
91
92
|
wrapped = if use_pretty
|
|
92
|
-
"set -o pipefail; #{command} | tee '#{log_raw}' | xcpretty"
|
|
93
|
+
"set -o pipefail; #{command} 2>&1 | tee '#{log_raw}' | xcpretty"
|
|
94
|
+
# "set -o pipefail; #{command} | tee '#{log_raw}' | xcpretty"
|
|
93
95
|
else
|
|
94
96
|
# no pretty: just tee to log and console
|
|
95
97
|
"set -o pipefail; #{command} | tee '#{log_raw}'"
|
|
96
98
|
end
|
|
97
99
|
UI.puts "XBuilder command: #{command}"
|
|
100
|
+
UI.puts "Available schemes:"
|
|
101
|
+
schemes = `xcodebuild -list 2>/dev/null`
|
|
102
|
+
UI.puts schemes
|
|
103
|
+
|
|
98
104
|
success = system('bash', '-lc', wrapped)
|
|
99
105
|
unless success
|
|
100
|
-
UI.puts "
|
|
106
|
+
UI.puts ""
|
|
107
|
+
UI.puts "========== XCODEBUILD FAILED =========="
|
|
108
|
+
UI.puts "platform=#{platform}"
|
|
109
|
+
UI.puts "scheme=#{scheme}"
|
|
110
|
+
UI.puts "destination=#{destination}"
|
|
111
|
+
UI.puts "log=#{log_raw}"
|
|
112
|
+
if platform == 'macOS'
|
|
113
|
+
UI.puts "Available schemes:"
|
|
114
|
+
schemes = `xcodebuild -list 2>/dev/null`
|
|
115
|
+
UI.puts schemes
|
|
116
|
+
end
|
|
101
117
|
if File.exist?(log_raw)
|
|
102
|
-
|
|
118
|
+
UI.puts ""
|
|
119
|
+
UI.puts "===== LAST 300 LINES ====="
|
|
120
|
+
tail = `tail -n 300 "#{log_raw}"`
|
|
103
121
|
UI.puts tail
|
|
122
|
+
UI.puts ""
|
|
123
|
+
UI.puts "===== ERROR LINES ====="
|
|
124
|
+
errors = `grep -nE "error:|fatal error:|Undefined symbols|Command Compile|Command SwiftCompile|Command Ld" "#{log_raw}"`
|
|
125
|
+
UI.puts(errors.empty? ? "No error lines found." : errors)
|
|
126
|
+
else
|
|
127
|
+
UI.puts "raw log not found"
|
|
104
128
|
end
|
|
105
|
-
|
|
106
|
-
|
|
129
|
+
raise Informative,
|
|
130
|
+
"xcodebuild failed. see log: #{log_raw}"
|
|
107
131
|
end
|
|
132
|
+
# unless success
|
|
133
|
+
# UI.puts "\n** xcodebuild failed — showing last 200 lines of raw log: #{log_raw}".red
|
|
134
|
+
# if File.exist?(log_raw)
|
|
135
|
+
# tail = `tail -n 200 '#{log_raw}'`
|
|
136
|
+
# UI.puts tail
|
|
137
|
+
# end
|
|
138
|
+
# Pod::ErrorUtil.error_report(command, []) if defined?(Pod::ErrorUtil)
|
|
139
|
+
# Process.exit $?.exitstatus.nonzero? || 1
|
|
140
|
+
# end
|
|
108
141
|
end
|
|
109
142
|
end
|
|
110
143
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-bb-xcframework
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.7.
|
|
4
|
+
version: 0.2.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- humin
|
|
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
105
105
|
- !ruby/object:Gem::Version
|
|
106
106
|
version: '0'
|
|
107
107
|
requirements: []
|
|
108
|
-
rubygems_version:
|
|
108
|
+
rubygems_version: 4.0.13
|
|
109
109
|
specification_version: 4
|
|
110
110
|
summary: 把podspec打包成xcframework的小工具。packager pod to a xcframework
|
|
111
111
|
test_files:
|