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 +4 -4
- data/lib/cocoapods-xcframework/gem_version.rb +1 -1
- data/lib/cocoapods-xcframework/local_build.rb +22 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 971243428b50396cfe6548c07bd84a71e685d164d5a86079ae135251d12e080b
|
|
4
|
+
data.tar.gz: 861f1df1bbf38100997be29b0133a37d7d128d597bf623694ff9528237ab8e90
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2c4f0e9e83d12d481d4e55342876a63ab8b3e70eb171cc258fb555445ef73910672dbe2f8baa905a8f421f82799d73b8d8cc6b6bb51fd020cd55444dce7f93aa
|
|
7
|
+
data.tar.gz: 920e62ea0f973dbeb4931d99fae4f7fba6bca5707b363e699cb782e82f2b7af3dc5f5865aeb9be39b4c0bf2b6995233284ddd46c737262c1e303183f484b1577
|
|
@@ -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
|
-
|
|
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
|
-
|
|
99
|
+
elsif platform == "macOS"
|
|
82
100
|
"#{scheme_name}-macOS"
|
|
101
|
+
else
|
|
102
|
+
scheme_name
|
|
83
103
|
end
|
|
84
104
|
else
|
|
85
105
|
scheme_name
|