cocoapods-packager-ext 0.0.28 → 0.0.29
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: c9812e5e9a1d1b816716bbdea4c7143cd00a5bb409ced69e87057091795f661c
|
4
|
+
data.tar.gz: 49840f81b8ee853a34f1427b2e632b88d397e043ed11e872fcc24de6c5c37073
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9de7513e68ce21c894a88f9d4404ec2ee2089e844354ecee9adf3817fdc0d39b72b9c8f8d5e25c80374795f2c713213d980376be458b2f20b81eda975554e27
|
7
|
+
data.tar.gz: d4da5a7071c4145eeb38b9b4dfbbef0e98239954c06761fa22ef1a4851c6f316ee4e9092ebff814b1c296b2ba152ce3812e45014d45fb8a02386ffd2be2bffc9
|
@@ -212,6 +212,33 @@ MAP
|
|
212
212
|
end
|
213
213
|
end
|
214
214
|
|
215
|
+
alias xcodebuild_t xcodebuild
|
216
|
+
|
217
|
+
def xcodebuild(defines = '', args = '', build_dir = 'build', target = 'Pods-packager', project_root = @static_sandbox_root, config = @config)
|
218
|
+
if defined?(Pod::DONT_CODESIGN)
|
219
|
+
args = "#{args} CODE_SIGN_IDENTITY=\"\" CODE_SIGNING_REQUIRED=NO"
|
220
|
+
end
|
221
|
+
|
222
|
+
command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{config} -target #{target} -project #{project_root}/Pods.xcodeproj 2>&1"
|
223
|
+
output = `#{command}`.lines.to_a
|
224
|
+
|
225
|
+
if $?.exitstatus != 0
|
226
|
+
if ENV['ENABLE_BACKUP_WORKSPACE'] && (ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'YES' || ENV['ENABLE_BACKUP_WORKSPACE'].upcase == 'TRUE')
|
227
|
+
target_dir = "#{@source_dir}/#{@spec.name}-#{@spec.version}"
|
228
|
+
work_dir = Dir.pwd
|
229
|
+
`mv "#{work_dir}" "#{target_dir}"`
|
230
|
+
end
|
231
|
+
puts UI::BuildFailedReport.report(command, output)
|
232
|
+
|
233
|
+
# Note: We use `Process.exit` here because it fires a `SystemExit`
|
234
|
+
# exception, which gives the caller a chance to clean up before the
|
235
|
+
# process terminates.
|
236
|
+
#
|
237
|
+
# See http://ruby-doc.org/core-1.9.3/Process.html#method-c-exit
|
238
|
+
Process.exit
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
215
242
|
alias initialize_t initialize
|
216
243
|
def initialize(platform, static_installer, source_dir, static_sandbox_root, dynamic_sandbox_root, public_headers_root, spec, embedded, mangle, dynamic, config, bundle_identifier, exclude_deps,exclude_dep_items=[],select_archs=[])
|
217
244
|
@exclude_dep_items = exclude_dep_items
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-packager-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.29
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kyle.zhou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|