cocoapods-tdf-bin 0.0.32 → 0.0.34

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: 16d408732ce244aa6fa7590f6ff2737677dc5fc46a9f867aa91b034b7b70141a
4
- data.tar.gz: e31eb5ad823627d63de950459b59b65e69bff363868ca5a7af962f891c6db4da
3
+ metadata.gz: c1bc4f3966acc0b64ba2011ec32fceb515874a96171be9386f174483f6701e14
4
+ data.tar.gz: 7c3a845cd00bcc95a86d72177cc9d1cc87930b24567a76e4fa469a9cbe6e3624
5
5
  SHA512:
6
- metadata.gz: c4d2f61a21673472392f44b043f4d47295197cfe224b1b95090903cae474439b7ec2c75fe3b8f7b3233e2b42ccfe7bb65cb141d0c3e20208edb572b8b90f35e4
7
- data.tar.gz: 539e68c18b271e1a4ef853f597b9de5f68259f8dbe2d9dcb67248435d953278028a2c2c6411d360b26f7073c4ade8f845b1a15e33576843be6f0e089935f9ae9
6
+ metadata.gz: 0cf97f19e6a20e1fdeb7b828966960adb7a543fd9b0b290e544b3f9f3dcfb5eb637b10e2b01b2e98436066285e41e9a47b1d76cf2f561dd5364188050317317f
7
+ data.tar.gz: 8eac599f85262658b32e117b38048775f8edde71f16087e82dbbe2bd1c3317d7a050aee7900eabce30f0aae0484deccf8f6a6e054d62d03ef87500d884eff53d
@@ -71,7 +71,7 @@ module Pod
71
71
  if !@only_build
72
72
  source_specs.uniq.each do |spec|
73
73
  begin
74
- fail_push_specs << spec unless CBin::Upload::Helper.new(spec,@code_dependencies,@sources).upload
74
+ fail_push_specs << spec unless CBin::Upload::Helper.new(spec, @code_dependencies, @sources).upload
75
75
  rescue Object => exception
76
76
  UI.puts exception
77
77
  fail_push_specs << spec
@@ -1,6 +1,6 @@
1
1
 
2
2
  module CBin
3
- VERSION = "0.0.32"
3
+ VERSION = "0.0.34"
4
4
  end
5
5
 
6
6
  module Pod
@@ -69,7 +69,7 @@ module CBin
69
69
  source_dir = zip_dir
70
70
  file_accessor = Sandbox::FileAccessor.new(Pathname.new('.').expand_path, @spec.consumer(@platform))
71
71
  Dir.chdir(workspace_directory) do
72
- builder = CBin::Library::Builder.new(@spec, file_accessor, @platform, source_dir,@framework_path)
72
+ builder = CBin::Library::Builder.new(@spec, file_accessor, @platform, source_dir, @framework_path)
73
73
  builder.build
74
74
  end
75
75
  end
@@ -31,7 +31,10 @@ module CBin
31
31
  end
32
32
 
33
33
  def build
34
+ # 编译出 arm64 的包
34
35
  defines = compile
36
+
37
+ # 编译出 x86_64的包
35
38
  build_sim_libraries(defines)
36
39
 
37
40
  defines
@@ -44,6 +47,7 @@ module CBin
44
47
  build_xcframework_for_ios
45
48
  # build_static_library_for_ios
46
49
 
50
+ # 整理 spec 的资源文件到 framework
47
51
  copy_resources
48
52
 
49
53
  # link_header
@@ -180,7 +184,7 @@ module CBin
180
184
  archs = ios_architectures
181
185
  # archs = %w[arm64 armv7 armv7s]
182
186
  archs.map do |arch|
183
- xcodebuild(defines, "ARCHS=\'#{arch}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'","build-#{arch}",@build_model)
187
+ xcodebuild(defines, "ARCHS=\'#{arch}\' OTHER_CFLAGS=\'-fembed-bitcode -Qunused-arguments\'","build-#{arch}", @build_model)
184
188
  end
185
189
  # else
186
190
  # xcodebuild(defines,options)
@@ -206,9 +210,9 @@ module CBin
206
210
  def xcodebuild(defines = '', args = '', build_dir = 'build', build_model = 'Debug')
207
211
 
208
212
  unless File.exist?("Pods.xcodeproj") #cocoapods-generate v2.0.0
209
- command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{File.join(File.expand_path("..", build_dir), File.basename(build_dir))} clean build -configuration #{build_model} -target #{target_name} -project ./Pods/Pods.xcodeproj 2>&1"
213
+ command = "xcodebuild #{defines} #{args} CODE_SIGN_IDENTITY='' CONFIGURATION_BUILD_DIR=#{File.join(File.expand_path("..", build_dir), File.basename(build_dir))} clean build -configuration #{build_model} -target #{target_name} -project ./Pods/Pods.xcodeproj 2>&1"
210
214
  else
211
- command = "xcodebuild #{defines} #{args} CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{build_model} -target #{target_name} -project ./Pods.xcodeproj 2>&1"
215
+ command = "xcodebuild #{defines} #{args} CODE_SIGN_IDENTITY='' CONFIGURATION_BUILD_DIR=#{build_dir} clean build -configuration #{build_model} -target #{target_name} -project ./Pods.xcodeproj 2>&1"
212
216
  end
213
217
 
214
218
  UI.message "command = #{command}"
@@ -181,13 +181,17 @@ module CBin
181
181
  suc_spec.delete('osx')
182
182
  suc_spec.delete('tvos')
183
183
  suc_spec.delete('watchos')
184
- platforms = suc_spec["platforms"]
185
- platforms.delete('osx')
186
- platforms.delete('tvos')
187
- platforms.delete('watchos')
184
+
188
185
  if deps_hash != nil
189
186
  dependencies = dependencies.merge(deps_hash)
190
187
  end
188
+
189
+ platforms = suc_spec["platforms"]
190
+ if platforms != nil
191
+ platforms.delete('osx')
192
+ platforms.delete('tvos')
193
+ platforms.delete('watchos')
194
+ end
191
195
  rescue
192
196
  end
193
197
  }
@@ -154,10 +154,10 @@ module Pod
154
154
 
155
155
  spec_version = rspec.spec.version
156
156
 
157
- if use_binary
158
- UI.message 'cocoapods-tdf-bin 插件'
159
- UI.message "- 开始处理 #{rspec.spec.name} #{spec_version} 组件."
160
- end
157
+ # if use_binary
158
+ # UI.message 'cocoapods-tdf-bin 插件'
159
+ # UI.message "- 开始处理 #{rspec.spec.name} #{spec_version} 组件."
160
+ # end
161
161
 
162
162
  if @@build_dependencies_only_build
163
163
  missing_binary_specs << rspec.spec
@@ -216,8 +216,8 @@ module Pod
216
216
  #缓存没有二进制组件到spec文件,local_psec_dir 目录
217
217
  sources_sepc = []
218
218
  des_dir = CBin::Config::Builder.instance.local_psec_dir
219
- FileUtils.rm_f(des_dir) if File.exist?des_dir
220
- Dir.mkdir des_dir unless File.exist?des_dir
219
+ FileUtils.rm_f(des_dir) if File.exist? des_dir
220
+ Dir.mkdir des_dir unless File.exist? des_dir
221
221
  missing_binary_specs.uniq.each do |spec|
222
222
  next if spec.name.include?('/')
223
223
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-tdf-bin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.32
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - gaijiaofan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-08 00:00:00.000000000 Z
11
+ date: 2022-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel