cocoapods-bb-PodAssistant 0.3.5.2 → 0.3.6.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f2d52face2f3ba304d2b966d140c60c4d78615b4fd58957cfe92031b232e91e
|
4
|
+
data.tar.gz: 49ddb7ef3bccd266c636cc0ca6455816f3e6b5937289a081771d5a02ba20ed0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f9becb8300d55c029dc7f7f12555a8dc4186bb6d8b2032c8a7018b38c983f1b28eca3da230e249b92d1f23bdc01f0effdf70fe198718e8d50bdd3049b22ef9
|
7
|
+
data.tar.gz: 48a1887b14defa100f3ead511e969aa8ebf66158cfdb3c0c919b41ae77a4a4c16e551a01e1e4138d055c3e7409211d0ed0f3faad0b7ab028863f9493bc532dbf
|
@@ -10,7 +10,7 @@ class PodPostInstaller
|
|
10
10
|
def initialize(lib, deployment_target=nil, filter_targets=["test"], is_matrix=true)
|
11
11
|
@lib = lib
|
12
12
|
if deployment_target.nil?
|
13
|
-
is_xcode16 = BB::PodUtils.
|
13
|
+
is_xcode16 = BB::PodUtils.above_xcode_16_version
|
14
14
|
if (is_xcode16 == true) then
|
15
15
|
@deployment_target = "13.0" # iOS18最低支持13系统
|
16
16
|
else
|
@@ -37,7 +37,8 @@ class PodPostInstaller
|
|
37
37
|
|
38
38
|
def run
|
39
39
|
env = BabybusInstallEnv.new()
|
40
|
-
|
40
|
+
is_above_xcode15 = BB::PodUtils.compare_xcode_15_version # 高于15
|
41
|
+
is_below_xcode15 = BB::PodUtils.below_xcode_15_version # 低于15
|
41
42
|
# 是否Untify项目
|
42
43
|
isUnityProject = isUnityApp
|
43
44
|
# Untify项目需要移除cocos项目res/src目录
|
@@ -63,7 +64,7 @@ class PodPostInstaller
|
|
63
64
|
end
|
64
65
|
# xcode_version = `xcrun xcodebuild -version | grep Xcode | cut -d' ' -f2`.to_f if xcode_version ≥ 15
|
65
66
|
# iOS17适配添加ld64 https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes
|
66
|
-
if (
|
67
|
+
if (is_above_xcode15 == true) then
|
67
68
|
# c++ weak 标识 xcode15 -ld64 is deprecated, use -ld_classic instead
|
68
69
|
config.build_settings['OTHER_LDFLAGS'] = "$(inherited) -lxml2 -lz -ObjC -lstdc++ -Wl -ld_classic -weak_framework SwiftUI"
|
69
70
|
else
|
@@ -98,7 +99,7 @@ class PodPostInstaller
|
|
98
99
|
target.build_configurations.each do |config|
|
99
100
|
# pod 1.13.0兼容故去除,避免
|
100
101
|
# 适配xcode 15 动态库报错: Error 'DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead'
|
101
|
-
# if (
|
102
|
+
# if (is_above_xcode15 == true) then
|
102
103
|
# xcconfig_path = config.base_configuration_reference.real_path
|
103
104
|
# xcconfig = File.read(xcconfig_path)
|
104
105
|
# xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
|
@@ -146,7 +147,9 @@ class PodPostInstaller
|
|
146
147
|
if fix_phases
|
147
148
|
fix_phases.always_out_of_date = "1"
|
148
149
|
end
|
149
|
-
|
150
|
+
if (is_below_xcode15 == true) then
|
151
|
+
project.save
|
152
|
+
end
|
150
153
|
end
|
151
154
|
end
|
152
155
|
end
|
@@ -138,6 +138,10 @@ module BB
|
|
138
138
|
end
|
139
139
|
return false
|
140
140
|
end
|
141
|
+
# xcode15以下
|
142
|
+
def self.below_xcode_15_version
|
143
|
+
return !compare_xcode_15_version
|
144
|
+
end
|
141
145
|
# xcode15以上
|
142
146
|
def self.compare_xcode_15_version
|
143
147
|
current_version = xcode_version
|
@@ -150,8 +154,12 @@ module BB
|
|
150
154
|
end
|
151
155
|
return false
|
152
156
|
end
|
157
|
+
# xcode16以下
|
158
|
+
def self.below_xcode_16_version
|
159
|
+
return !above_xcode_16_version
|
160
|
+
end
|
153
161
|
# xcode16以上
|
154
|
-
def self.
|
162
|
+
def self.above_xcode_16_version
|
155
163
|
current_version = xcode_version
|
156
164
|
if current_version.nil?
|
157
165
|
puts "未找到安装的Xcode版本。".red
|
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.6.1
|
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-08-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods-core
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 0.2.
|
47
|
+
version: 0.2.8.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.2.
|
54
|
+
version: 0.2.8.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: fastlane
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|