cocoapods-bb-xcframework 0.2.2 → 0.2.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1033333c183bcba6eecae0b499ca65995cb308abf2d572a692af8ef572bff304
4
- data.tar.gz: 83786e9d5fb0d798fb34ed2ac6f9eabc3e5d34d7884366260d2661dd0e6ee4d2
3
+ metadata.gz: 44334b003db5f637575546f87da1abf68deb9aa4d31a4c1b23884ffa5d0dc96a
4
+ data.tar.gz: 14591a0139ff117858f596ef6449260da925cfec90fe1692516758cd6eb7d824
5
5
  SHA512:
6
- metadata.gz: 9f5c2511a1eed68f90c85b0106cfa2101058498b7589b493ee5270efb2ced1798b898d719405c2174c861abda8535f226659d293cd185438cf44ada06756cbfc
7
- data.tar.gz: 86fd0c94f701825988c8f544e350fff888e36400062661e974af556ee7d0a16c3d0e8dbc84fb510d1531b333cb6eebaee87b494bbc2d798339806870cd008353
6
+ metadata.gz: cef57cd8d3655596578026c28a133ffa16f5fe13096fe4d78f4f05475574abc8d7539f5d3cb819c3975a0c15cd9cabe5af77504592deedb66ee847c0151ed55a
7
+ data.tar.gz: e13aba5936cf45104896b913cc994f5b0ab273e2694bb8cd462837a95cde2b3ac6f0d1a66e6ce5a2eb5d4e2fbf67e0438e8da3dde5d9e7baaaecae642c4177d1
@@ -1,3 +1,3 @@
1
1
  module CocoapodsXCFramework
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.4.1"
3
3
  end
@@ -13,8 +13,8 @@ module Pod
13
13
  archs = 'x86_64 arm64'
14
14
  elsif platform == 'iOS Simulator'
15
15
  destination = 'generic/platform=iOS Simulator'
16
- archs = 'x86_64 arm64'
17
- # archs = 'x86_64 i386 arm64' # 某些库不支持i386故去除 by hm 21/11/5
16
+ # archs = 'x86_64 arm64'
17
+ archs = 'x86_64 i386 arm64' # swift库针对M1芯片移除x86架构,故模拟器添加i386,解决maccatalyst能正常生成
18
18
  else
19
19
  destination = 'generic/platform=iOS'
20
20
  archs = 'arm64 armv7'
@@ -198,9 +198,24 @@ module Pod
198
198
  File.open("#{target_dir}/#{@spec.name}.podspec.json",'wb+') do |f|
199
199
  f.write(spec_json)
200
200
  end
201
+ # fix xcframework-is-not-a-member-type-of-error https://v3.bbcloud.babybus.com/team/184/wiki/13820
202
+ UI.puts "fix xcframework-is-not-a-member-type-of-error:#{target_dir}"
203
+ fix_xcframework_error(target_dir, @spec.name)
204
+
201
205
  UI.puts "result export at :#{target_dir}"
202
206
  target_dir
203
207
  end
208
+
209
+ def fix_xcframework_error target_dir, name
210
+ command = "find #{target_dir} -name '*.swiftinterface' -exec sed -i -e 's/#{name}\\.//g' {} \\; && find #{target_dir} -name '*.swiftinterface-e' | xargs rm -rf"
211
+ UI.puts "fix swift error command :#{command}"
212
+
213
+ output = `#{command}`.lines.to_a
214
+ if $?.exitstatus != 0
215
+ Pod::ErrorUtil.error_report command,output
216
+ Process.exit -1
217
+ end
218
+ end
204
219
 
205
220
  def find_bundles target_dir
206
221
  bundle_root = "#{target_dir}/bundle/"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-xcframework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubygems_version: 3.2.30
109
+ rubygems_version: 3.4.3
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: 把podspec打包成xcframework的小工具。packager pod to a xcframework