cocoapods-bb-PodAssistant 0.3.13.4 → 0.3.13.5
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: 7cd696c579a58b8aae2d0d63c9ef78c3d85593dc80bc6265bd313c8e8b2f77af
|
4
|
+
data.tar.gz: 2cf310ff0f0132956fe0f26441955e3d9394b93592fc97827bb6475ffb59a70f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88de330352f9ecc0e7b39ebf0aaf21767cbd3314c52f7ca649355cf12bfceb7818e4263df20d83851d1755bd4268a3bbab72c48e11ee72f4865125260303d8e7
|
7
|
+
data.tar.gz: 07cce2fc42970398e62a963528cfd5c3784ebe5f032bf3cdbad7c6917b5ae7057785de8b18afc3437548b58dad8fa0d3bf6b8d9c175c9f0b104c5bf40c69ed8a
|
@@ -99,16 +99,35 @@ class PodPostInstaller
|
|
99
99
|
|
100
100
|
private def generate_other_ldflags()
|
101
101
|
# new_flags = ['$(inherited)', '-ObjC', '-lxml2', '-lz', '-lstdc++', '-weak_framework', 'SwiftUI', '-Wl,-v', '-Wl,-no_deduplicate']
|
102
|
-
new_flags = ['$(inherited)', '-ObjC', '-lxml2', '-lz', '-lc++', '-weak_framework', 'SwiftUI'
|
102
|
+
new_flags = ['$(inherited)', '-ObjC', '-lxml2', '-lz', '-lc++', '-weak_framework', 'SwiftUI']
|
103
103
|
is_above_xcode26 = BB::PodUtils.above_xcode_26_version # 高于26
|
104
104
|
is_above_xcode15 = BB::PodUtils.compare_xcode_15_version # 高于15
|
105
105
|
if (is_above_xcode26 == true) then
|
106
|
+
# -Wl、-Xlinker使用一样
|
106
107
|
# 从 Xcode 15.3 起,Apple 已正式废弃 ld-classic,而 Xcode 26 beta 默认强制使用新版链接器(ld64 764.0+)。
|
107
|
-
new_flags << '-Wl,-no_application_extension'
|
108
|
-
new_flags << '-Wl,-ld_classic'
|
108
|
+
# new_flags << '-Wl,-no_application_extension'
|
109
|
+
# new_flags << '-Wl,-ld_classic'
|
110
|
+
# new_flags << '-Wl,-ld_classic' << '-Wl,-ld_new' << '-Wl,-print_statistics'
|
111
|
+
# Release启用 dead_strip 优化,减小包体,禁用 dead_strip 提升调试体验
|
112
|
+
# new_flags << '-Wl,-why_load' << '-Wl,-no_warn_duplicate_libraries'
|
113
|
+
# new_flags << '-Xlinker
|
114
|
+
# -force_load
|
115
|
+
# -Xlinker
|
116
|
+
# $(PROJECT_DIR)/Pods/BBAudioRecorder/Pod/Lib/libRecorder.a'
|
117
|
+
# new_flags << '-Wl,-dead_strip,-allow_dead_duplicates'
|
118
|
+
# https://developer.apple.com/forums/thread/788064 -Xlinker -dead_strip -Xlinker -allow_dead_duplicates
|
119
|
+
new_flags << '-Xlinker' << '-dead_strip' << '-Xlinker' << '-allow_dead_duplicates'
|
120
|
+
# new_flags << '-Xlinker
|
121
|
+
# -dead_strip
|
122
|
+
# -Xlinker
|
123
|
+
# -allow_dead_duplicates
|
124
|
+
# -Xlinker
|
125
|
+
# -map
|
126
|
+
# -Xlinker
|
127
|
+
# $(PROJECT_DIR)/build/LinkMap-$(TARGET_NAME)-$(CONFIGURATION).txt'
|
109
128
|
elsif (is_above_xcode15 == true) then # iOS17适配添加ld64 https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes
|
110
129
|
# c++ weak 标识 xcode15 -ld64 is deprecated, use -ld_classic instead
|
111
|
-
new_flags << '-Wl,-ld_classic'
|
130
|
+
new_flags << '-Wl,-v' << '-Wl,-no_deduplicate' << '-Wl,-ld_classic'
|
112
131
|
end
|
113
132
|
# 去重并规范化输出
|
114
133
|
new_flags.uniq.join(' ')
|