cocoapods-packager-ext 0.0.28 → 0.0.29

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4a7c4eb8ea2da2a0ba4062e761774f735b9f876d844a5d496572ca8f8f8ba06
4
- data.tar.gz: 0bd6ff054c0a6a9693a6874f6d49c2756648b49b3a677e1bd0a20b004ee014d9
3
+ metadata.gz: c9812e5e9a1d1b816716bbdea4c7143cd00a5bb409ced69e87057091795f661c
4
+ data.tar.gz: 49840f81b8ee853a34f1427b2e632b88d397e043ed11e872fcc24de6c5c37073
5
5
  SHA512:
6
- metadata.gz: d2bea48cee61556923f7f931eda06e82b39424adda0f3b144e4f75eceb3c98dab15aa029ecba464b0c4dc1ed686482f597e57b333c118f468f0e7de1863a381a
7
- data.tar.gz: 1a1d97ad12dee4bbf539c417896b0ebe85867302130a3fa6fc97c8e678597340bb58d2f5d6debdd897ad4150907fb1cc422dbadfbf30b4b797011434b9621db8
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
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPackagerExt
2
- VERSION = "0.0.28"
2
+ VERSION = "0.0.29"
3
3
  end
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.28
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-26 00:00:00.000000000 Z
11
+ date: 2021-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler