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: 5c1d12cd707ce83a08ff86a50398891ee690534ab84f51dc0c20b080de223ed0
4
- data.tar.gz: 7a11b0891f3affac2c4086210a1d60d9bba52c4b9ff13956f073963c5fb51cb9
3
+ metadata.gz: 2557c0e6e4b07fa15768d1876528509d5bbb917503c7d63bb41118c78471bafb
4
+ data.tar.gz: cbb51d63b2e18c2725a3b1c807c5cb1c2417663c7e4e0e5780fcc15c4d78ff80
5
5
  SHA512:
6
- metadata.gz: 5417ba4a86f7c2558065fcdfccef8d83ff5da03e93e78b9c6cef522eb359c8617d1f47357d680e56e8a64c4b6bc00ac5b06f5e5204926c498b24e1fc07438b2b
7
- data.tar.gz: 54ef0b8193944dcc946a0bdcffee02ca4ff567b20d346fb1277f0f622e3ba932a6163344f097c29b4422d333777f70b7118051cb690a2c4ecffe132c0bf2c3cb
6
+ metadata.gz: c514d24c75bdc9f09c890bdd40f9bdb7ab04c99582bcdf820cde95dd6745e7c0003b4a1aa85ab3cbf95c0f891a647bec9be194139e9573ec5e81d0d0a7297645
7
+ data.tar.gz: 926e17d5de987e55b02b4a6ec7a1204af17a7ba302332c44481b1a1ae0b457ae47debfb421596f2f1711b56d522842e6e6c8c67d0471d284a61f7368ee9a5404
@@ -1,7 +1,7 @@
1
1
  require 'cocoapods'
2
2
 
3
3
  module CBin
4
- VERSION = '0.2.11.2'
4
+ VERSION = '0.2.11.3'
5
5
  end
6
6
 
7
7
  module Pod
@@ -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
- # FileUtils.mkdir_p(zip_dir) unless File.exist?(zip_dir)
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11.2
4
+ version: 0.2.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin