forked from verygoodsecurity/vgs-collect-ios
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPodfile
28 lines (20 loc) · 822 Bytes
/
Podfile
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
platform :ios, '10.0'
workspace 'VGSCollectSDK'
target 'VGSCollectSDK' do
use_frameworks!
target 'FrameworkTests' do
# inherit! :search_paths
end
end
# The workaround starts here !!!!!
targetWorkaround = "Pods-FrameworkTests"
post_install do |installer|
installer.pods_project.targets.each do |target|
puts "#{target.name}"
if target.name == targetWorkaround
puts "Replacing!!!"
puts `cp "./Pods/Target Support Files/Pods-VGSFramework/Pods-VGSFramework.debug.xcconfig" "./Pods/Target Support Files/Pods-VGSFrameworkTests/Pods-VGSFrameworkTests.debug.xcconfig"`
puts `cp "./Pods/Target Support Files/Pods-VGSFramework/Pods-VGSFramework.release.xcconfig" "./Pods/Target Support Files/Pods-VGSFrameworkTests/Pods-VGSFrameworkTests.release.xcconfig"`
end
end
end