cocoapods-bb-xcframework 0.2.6.4 → 0.2.6.5

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: 7b4c60e8964374bb98b58a5aa9ebf315d18cf752cbbf35eebab71ae9bfb68d45
4
- data.tar.gz: '028f3e39db67dcf294124e76eb6800ba634af4c02dc129a73b36daf65cf380d7'
3
+ metadata.gz: 1a83d3846da44025ba26e03b0953dbb3d040ea22ea08a845ab3709b1abc221bc
4
+ data.tar.gz: 7d74a47b3749e010bb1a9c0415f7fd1985e8c5c2bb9d3318e37b9f34b36383e8
5
5
  SHA512:
6
- metadata.gz: 8810dbb80183b22c09ef068f4dbad5a00e83910bc6b6767ecd321ad76b1eb721f582322f1f25343d7d391fc1eacf75faf116622db159245cc3180a0e33b8e3ec
7
- data.tar.gz: 6ee47de50f032f31fe3e57a416042df6da2b48220e2bf42e082c952153ef91bfae5cc93fb24fb71d6de6ecc836a626cc19f2f924bfe333fed6f23efacc67d874
6
+ metadata.gz: e9c77d4c42bdcb027d279915f678411b320598983b57c955dc47cd6af915e359484ab174b5748c0226f85e19fc974779b2ead6a10ef5847a85249705ae785edf
7
+ data.tar.gz: 95605f64168e45a6fcb68337176bc7879aba2b70b8461dab47c392cd23c45a72aef1045090791a47077a4d59dc429bfb8148d90fa1f7f909520f2ddc110e464d
@@ -1,3 +1,3 @@
1
1
  module CocoapodsXCFramework
2
- VERSION = "0.2.6.4"
2
+ VERSION = "0.2.6.5"
3
3
  end
@@ -71,12 +71,39 @@ module Pod
71
71
  else
72
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
73
  end
74
- UI.puts("XBuilder command:#{command}")
75
- output = `#{command}`.lines.to_a
76
- Dir.chdir pwd
77
- if $?.exitstatus != 0
78
- Pod::ErrorUtil.error_report command,output
79
- Process.exit -1
74
+ # UI.puts("XBuilder command:#{command}")
75
+ # output = `#{command}`.lines.to_a
76
+ # Dir.chdir pwd
77
+ # if $?.exitstatus != 0
78
+ # Pod::ErrorUtil.error_report command,output
79
+ # Process.exit -1
80
+ # end
81
+
82
+ # --- enhanced logging & reliable failure surfacing ---
83
+ log_dir = File.join(work_dir, 'logs')
84
+ FileUtils.mkdir_p(log_dir)
85
+ scheme_name = (scheme || @spec&.name || 'Pods').to_s
86
+ plat_name = platform.to_s.gsub(/\s+/, '_')
87
+ log_raw = File.join(log_dir, "xcodebuild-#{scheme_name}-#{plat_name}-#{configuration}.raw.log")
88
+
89
+ # Allow disabling xcpretty via env
90
+ use_pretty = ENV['XBUILDER_NOPRETTY'] != '1'
91
+ wrapped = if use_pretty
92
+ "set -o pipefail; #{command} | tee '#{log_raw}' | xcpretty"
93
+ else
94
+ # no pretty: just tee to log and console
95
+ "set -o pipefail; #{command} | tee '#{log_raw}'"
96
+ end
97
+ UI.puts "XBuilder command: #{command}"
98
+ success = system('bash', '-lc', wrapped)
99
+ unless success
100
+ UI.puts "\n** xcodebuild failed — showing last 200 lines of raw log: #{log_raw}".red
101
+ if File.exist?(log_raw)
102
+ tail = `tail -n 200 '#{log_raw}'`
103
+ UI.puts tail
104
+ end
105
+ Pod::ErrorUtil.error_report(command, []) if defined?(Pod::ErrorUtil)
106
+ Process.exit $?.exitstatus.nonzero? || 1
80
107
  end
81
108
  end
82
109
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-xcframework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6.4
4
+ version: 0.2.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-02-28 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: cocoapods
@@ -91,7 +90,6 @@ homepage: https://github.com/humin1102/cocoapods-bb-xcframework
91
90
  licenses:
92
91
  - MIT
93
92
  metadata: {}
94
- post_install_message:
95
93
  rdoc_options: []
96
94
  require_paths:
97
95
  - lib
@@ -106,8 +104,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
104
  - !ruby/object:Gem::Version
107
105
  version: '0'
108
106
  requirements: []
109
- rubygems_version: 3.5.6
110
- signing_key:
107
+ rubygems_version: 3.7.2
111
108
  specification_version: 4
112
109
  summary: 把podspec打包成xcframework的小工具。packager pod to a xcframework
113
110
  test_files: