cocoapods-bb-xcframework 0.2.7.5 → 0.2.7.6

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: 1a5093941ce0cd361019450a4aab44a66023c314c63fd0e982caa6590b912a2a
4
- data.tar.gz: ea809e44a928f2d2f29fc5f0f06dd06ac9f69566ca24c8142b5f02b06b8c9863
3
+ metadata.gz: 971243428b50396cfe6548c07bd84a71e685d164d5a86079ae135251d12e080b
4
+ data.tar.gz: 861f1df1bbf38100997be29b0133a37d7d128d597bf623694ff9528237ab8e90
5
5
  SHA512:
6
- metadata.gz: c7b19ee700da2639e1d6a92db3c44648d1f4df251fb3f9a00b2141cf8d41f14b60d4a90314b65bc60184badfd6449b3de1d6bf1191c4c32d5607e8ba58362fda
7
- data.tar.gz: 6c52a57a57a25040551819e30ba22f66d4cc04c476bd66951f32c006baadddbaeb4967fd14ecd63ece14b0dcb1af8e12f2a03f6a2639f6de82157e9beb2f48ee
6
+ metadata.gz: 2c4f0e9e83d12d481d4e55342876a63ab8b3e70eb171cc258fb555445ef73910672dbe2f8baa905a8f421f82799d73b8d8cc6b6bb51fd020cd55444dce7f93aa
7
+ data.tar.gz: 920e62ea0f973dbeb4931d99fae4f7fba6bca5707b363e699cb782e82f2b7af3dc5f5865aeb9be39b4c0bf2b6995233284ddd46c737262c1e303183f484b1577
@@ -1,3 +1,3 @@
1
1
  module CocoapodsXCFramework
2
- VERSION = "0.2.7.5"
2
+ VERSION = "0.2.7.6"
3
3
  end
@@ -20,6 +20,12 @@ module Pod
20
20
  @source_dir = source_dir
21
21
  @outputs = Hash.new
22
22
  @workspace = workspace
23
+ # podspecPath = Dir.glob(File.join(source_dir, name))
24
+ # if podspecPath.empty?
25
+ # puts "source_dir:#{source_dir} name:#{name}"
26
+ # UI.puts("❌ 未在 #{podspecPath} 下找到,无法生成 xcframework").red
27
+ # Process.exit 1
28
+ # end
23
29
  end
24
30
 
25
31
  def run
@@ -75,11 +81,25 @@ module Pod
75
81
  ""
76
82
  end
77
83
 
78
- scheme_arg = if workspace_path && !workspace_path.to_s.strip.empty?
84
+ puts "spec:#{spec} type:#{spec.class}"
85
+ # 只有 PodSpec 声明了多平台支持时,workspace 中才使用平台后缀 scheme。
86
+ # 单平台组件保持原始 scheme_name,避免拼接不存在的 scheme。
87
+ # supported_platforms = []
88
+ # supported_platforms << :ios if spec.ios.deployment_target
89
+ # supported_platforms << :osx if spec.osx.deployment_target
90
+ # supported_platforms << :tvos if spec.tvos.deployment_target
91
+ # supported_platforms << :watchos if spec.watchos.deployment_target
92
+ # is_multi_platform = supported_platforms.uniq.size > 1
93
+ supported_platforms = spec.available_platforms.map(&:name).uniq
94
+ is_multi_platform = supported_platforms.size > 1
95
+ puts "supported_platforms:#{supported_platforms}"
96
+ scheme_arg = if workspace_path && !workspace_path.to_s.strip.empty? && is_multi_platform
79
97
  if platform == "iOS" or platform == "Simulator" or platform == "MacCatalyst"
80
98
  "#{scheme_name}-iOS"
81
- else
99
+ elsif platform == "macOS"
82
100
  "#{scheme_name}-macOS"
101
+ else
102
+ scheme_name
83
103
  end
84
104
  else
85
105
  scheme_name
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.5
4
+ version: 0.2.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin