cocoapods-bb-xcframework 0.2.3 → 0.2.4.1
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/xbuilder.rb +15 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44334b003db5f637575546f87da1abf68deb9aa4d31a4c1b23884ffa5d0dc96a
|
4
|
+
data.tar.gz: 14591a0139ff117858f596ef6449260da925cfec90fe1692516758cd6eb7d824
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cef57cd8d3655596578026c28a133ffa16f5fe13096fe4d78f4f05475574abc8d7539f5d3cb819c3975a0c15cd9cabe5af77504592deedb66ee847c0151ed55a
|
7
|
+
data.tar.gz: e13aba5936cf45104896b913cc994f5b0ab273e2694bb8cd462837a95cde2b3ac6f0d1a66e6ce5a2eb5d4e2fbf67e0438e8da3dde5d9e7baaaecae642c4177d1
|
@@ -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.
|
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:
|
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.
|
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
|