cocoapods-bb-bin 0.2.11.2 → 0.2.11.3
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: 2557c0e6e4b07fa15768d1876528509d5bbb917503c7d63bb41118c78471bafb
|
4
|
+
data.tar.gz: cbb51d63b2e18c2725a3b1c807c5cb1c2417663c7e4e0e5780fcc15c4d78ff80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c514d24c75bdc9f09c890bdd40f9bdb7ab04c99582bcdf820cde95dd6745e7c0003b4a1aa85ab3cbf95c0f891a647bec9be194139e9573ec5e81d0d0a7297645
|
7
|
+
data.tar.gz: 926e17d5de987e55b02b4a6ec7a1204af17a7ba302332c44481b1a1ae0b457ae47debfb421596f2f1711b56d522842e6e6c8c67d0471d284a61f7368ee9a5404
|
@@ -58,7 +58,9 @@ module CBin
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def framework_file_path
|
61
|
+
# 测试发现生成framework目录不一,需要进行兼容
|
61
62
|
target_dir = File.join(framework_folder_path,framework_name)
|
63
|
+
target_dir = "#{Dir.pwd}/#{framework_name}" unless File.exist?(target_dir)
|
62
64
|
return target_dir
|
63
65
|
end
|
64
66
|
def podspec_name
|
@@ -80,7 +82,12 @@ module CBin
|
|
80
82
|
require "fileutils"
|
81
83
|
FileUtils.mkdir_p(zip_dir)
|
82
84
|
end
|
83
|
-
|
85
|
+
|
86
|
+
# 检查 framework_file_path 是否存在
|
87
|
+
unless File.exist?(framework_file_path)
|
88
|
+
UI.puts "❌ 错误: 未找到框架文件 #{framework_file_path}".red
|
89
|
+
raise "未找到框架文件,无法执行拷贝,请检查构建是否成功"
|
90
|
+
end
|
84
91
|
|
85
92
|
UI.puts "Compressing #{framework_file_path} into #{target_dir}"
|
86
93
|
|