cocoapods-bb-PodAssistant 0.3.1 → 0.3.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: abca444278895fb5f6e60dca3936dbe42e11f947c7871b87c275ce88979856d5
|
4
|
+
data.tar.gz: 6dc620a0003fea182fff13b4bf9476c6d65bee2a60815141f1cf7c1c7cf213af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7675227ade3264a24397840393cfde5d1fd432871f4de8f897c934de813bec10cd379aff65887790ec5f8db66d5e1666ec4376ca5b89d3601404fbaf7c7d247
|
7
|
+
data.tar.gz: 5e29e7fbd119f7ff88b4965555e302274ffc44c089da71712b2b7a8a11198d1e0ecac65ba10dd58f177b780a417998733628181c176dcd7b5e93745536d6253a
|
@@ -56,12 +56,16 @@ class PodPostInstaller
|
|
56
56
|
env.copyCocosPackage
|
57
57
|
end
|
58
58
|
end
|
59
|
-
#
|
59
|
+
# xcode_version = `xcrun xcodebuild -version | grep Xcode | cut -d' ' -f2`.to_f if xcode_version ≥ 15
|
60
|
+
# iOS17适配添加ld64 https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes
|
60
61
|
if (is_xcode15 == true) then
|
61
|
-
|
62
|
+
# c++ weak 标识 xcode15 -ld64 is deprecated, use -ld_classic instead
|
63
|
+
config.build_settings['OTHER_LDFLAGS'] = "$(inherited) -lxml2 -lz -ObjC -lstdc++ -Wl -ld_classic -weak_framework SwiftUI"
|
62
64
|
else
|
63
65
|
config.build_settings['OTHER_LDFLAGS'] = "$(inherited) -lxml2 -lz -ObjC -lstdc++"
|
64
66
|
end
|
67
|
+
otherLink_setting_value = config.build_settings['OTHER_LDFLAGS']
|
68
|
+
puts "OTHER_LDFLAGS Build Setting Value: #{otherLink_setting_value}".green
|
65
69
|
end
|
66
70
|
end
|
67
71
|
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.3
|
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.
|