-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathPodfile
More file actions
66 lines (48 loc) 路 1.58 KB
/
Copy pathPodfile
File metadata and controls
66 lines (48 loc) 路 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Uncomment the next line to define a global platform for your project
platform :ios, '15.0'
target 'VergeiOS' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
pod 'Tor', '~> 409.6'
# Pods for VergeiOS
target 'VergeiOSTests' do
inherit! :search_paths
# Pods for testing
end
target 'VergeiOSUITests' do
# Pods for testing
end
end
target 'VergeSiri' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for VergeSiri
end
target 'VergeSiriUI' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for VergeSiriUI
end
target 'VergeWatch Extension' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
# Pods for VergeWatch Extension
end
post_install do |installer|
# Xcode 26 can resolve `-framework "tor"` to the generated `Tor.framework`
# while building the Tor pod itself. Link the vendored lowercase framework
# binary directly so the pod does not try to link with itself.
installer.pods_project.targets.each do |target|
next unless target.name == 'Tor'
target.build_configurations.each do |config|
config.build_settings.delete('OTHER_LDFLAGS')
xcconfig_path = config.base_configuration_reference.real_path
xcconfig = File.read(xcconfig_path)
xcconfig.gsub!(
/OTHER_LDFLAGS = .*/,
'OTHER_LDFLAGS = $(inherited) -l"z" "$(PODS_XCFRAMEWORKS_BUILD_DIR)/Tor/CTor/tor.framework/tor"'
)
File.write(xcconfig_path, xcconfig)
end
end
end