cocoapods-bb-PodAssistant 0.3.1 → 0.3.2
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: 3774e1b9fbb57845be46192a1fdea9d4fa85012420a0ad23f3cb51571728f0e2
|
4
|
+
data.tar.gz: '069de9649aaea81817c3f904baa8d2fdb7e699abc7d458432489f7e1cb6c3654'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 26313aa22faefbc6e969880f4d8060d8b6dc5731c90157d63957779702c7e391297f533b70942f90b4edc7389ff55555f9266ce7e26e12b8ca88eab636c9d8a7
|
7
|
+
data.tar.gz: e4c680e8d7c6b1c598014efd889cdfdee4a9a66e9f30ccdc0b0d7dc7bdb672362cab0550a515bed13f1f64688e0298de77ec665520b221e520bee06277664cc5
|
@@ -58,7 +58,8 @@ class PodPostInstaller
|
|
58
58
|
end
|
59
59
|
# iOS17适配添加ld64
|
60
60
|
if (is_xcode15 == true) then
|
61
|
-
|
61
|
+
# xcode15 打包添加属性 -weak_framework SwiftUI,避免iOS12系统crash
|
62
|
+
config.build_settings['OTHER_LDFLAGS'] = "$(inherited) -lxml2 -lz -ObjC -lstdc++ -ld64 -weak_framework SwiftUI"
|
62
63
|
else
|
63
64
|
config.build_settings['OTHER_LDFLAGS'] = "$(inherited) -lxml2 -lz -ObjC -lstdc++"
|
64
65
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
require 'xcodeproj'
|
5
5
|
require 'cocoapods'
|
6
|
+
require 'find'
|
6
7
|
|
7
8
|
module BB
|
8
9
|
class PodUtils
|
@@ -76,7 +77,25 @@ module BB
|
|
76
77
|
if File.exist?(path)
|
77
78
|
return path
|
78
79
|
end
|
79
|
-
|
80
|
+
info_path = ""
|
81
|
+
# 定义搜索目录
|
82
|
+
search_dir = getProjectPath
|
83
|
+
# 使用 Find 模块来递归搜索目录中的文件
|
84
|
+
Find.find(search_dir) do |path|
|
85
|
+
name = File.basename(path)
|
86
|
+
# 排除 pods 文件夹
|
87
|
+
if FileTest.directory?(path) && (name == 'Pods' || name.include?('.xcodeproj') || name.include?('Tests'))
|
88
|
+
Find.prune
|
89
|
+
elsif FileTest.file?(path) && name == 'Info.plist'
|
90
|
+
# 如果找到 Info.plist 文件,则输出其路径
|
91
|
+
puts "Info.plist 文件路径:#{path}"
|
92
|
+
info_path = path
|
93
|
+
end
|
94
|
+
end
|
95
|
+
if File.exist?(info_path)
|
96
|
+
return info_path
|
97
|
+
end
|
98
|
+
puts "无法找打工程Info.plist配置文件,工程目录:#{getProjectPath} @hm确认".red
|
80
99
|
return nil
|
81
100
|
# raise Informative, "#{path} File no exist, please check" unless File.exist?(path)
|
82
101
|
# return path
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-bb-PodAssistant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- humin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods-core
|
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
143
143
|
- !ruby/object:Gem::Version
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
|
-
rubygems_version: 3.
|
146
|
+
rubygems_version: 3.5.6
|
147
147
|
signing_key:
|
148
148
|
specification_version: 4
|
149
149
|
summary: A longer description of cocoapods-bb-PodAssistant.
|