cocoapods-bb-PodAssistant 0.3.5.2 → 0.3.6.0
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: 7c5a744f1e5a5eab653a659ce0e7cff34f672821555461404b7283f8429f2b83
|
4
|
+
data.tar.gz: 85a9b0704feba8af63c7d8c665f0c70d633eb8e55b9d51929626e2eb25492308
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c2acb038f58998ecd76e3ba8f52c9d2066c4cf5d1f1242b97b69905445873f6e3b264db04c5e41278663af1ceb5cc6dd1ffff63e28e93aa5602ba1a7abbef93
|
7
|
+
data.tar.gz: 6c704e5efb01271509dc78310f05e3e8a87cc9d28c5e823082291cfe0fa22ca96126db9425b3ece7a6a8abd5dbe5d77412e6dfe9c49537968b5e5c13b189166d
|
@@ -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目录
|
@@ -46,7 +47,9 @@ class PodPostInstaller
|
|
46
47
|
end
|
47
48
|
ios_deployment_target = @deployment_target
|
48
49
|
puts "pod组件配置工程最低支持iOS系统 ===> #{ios_deployment_target.to_s.send(:red)}".green
|
49
|
-
|
50
|
+
if (is_below_xcode15 == true) then
|
51
|
+
@lib.aggregate_targets.first.user_project.save # 解决Xcode13 pod update操作出现failed to save pods.xcodeproj问题 by hm 21/11/8
|
52
|
+
end
|
50
53
|
project = Xcodeproj::Project.open(BB::PodUtils.getXcodeprojPath)
|
51
54
|
project.targets.each do |target|
|
52
55
|
target.build_configurations.each do |config|
|
@@ -63,7 +66,7 @@ class PodPostInstaller
|
|
63
66
|
end
|
64
67
|
# xcode_version = `xcrun xcodebuild -version | grep Xcode | cut -d' ' -f2`.to_f if xcode_version ≥ 15
|
65
68
|
# iOS17适配添加ld64 https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes
|
66
|
-
if (
|
69
|
+
if (is_above_xcode15 == true) then
|
67
70
|
# c++ weak 标识 xcode15 -ld64 is deprecated, use -ld_classic instead
|
68
71
|
config.build_settings['OTHER_LDFLAGS'] = "$(inherited) -lxml2 -lz -ObjC -lstdc++ -Wl -ld_classic -weak_framework SwiftUI"
|
69
72
|
else
|
@@ -98,7 +101,7 @@ class PodPostInstaller
|
|
98
101
|
target.build_configurations.each do |config|
|
99
102
|
# pod 1.13.0兼容故去除,避免
|
100
103
|
# 适配xcode 15 动态库报错: Error 'DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead'
|
101
|
-
# if (
|
104
|
+
# if (is_above_xcode15 == true) then
|
102
105
|
# xcconfig_path = config.base_configuration_reference.real_path
|
103
106
|
# xcconfig = File.read(xcconfig_path)
|
104
107
|
# xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
|
@@ -146,7 +149,9 @@ class PodPostInstaller
|
|
146
149
|
if fix_phases
|
147
150
|
fix_phases.always_out_of_date = "1"
|
148
151
|
end
|
149
|
-
|
152
|
+
if (is_below_xcode15 == true) then
|
153
|
+
project.save
|
154
|
+
end
|
150
155
|
end
|
151
156
|
end
|
152
157
|
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.0
|
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-28 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
|