forked from facebookarchive/pop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Podfile
executable file
·30 lines (25 loc) · 1.18 KB
/
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
29
30
platform :ios, '6.0'
target :'pop-tests-ios', :exclusive => true do
pod 'OCMock', '~> 2.2'
end
target :'pop-tests-osx', :exclusive => true do
platform :osx, '10.8'
pod 'OCMock', '~> 2.2'
end
# Add XCTests to generated xcconfigs
post_install do
pop_test_xcconfigs = [
"./Pods/Target Support Files/Pods-pop-tests-ios/Pods-pop-tests-ios.debug.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-ios/Pods-pop-tests-ios.profile.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-ios/Pods-pop-tests-ios.release.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-osx/Pods-pop-tests-osx.debug.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-osx/Pods-pop-tests-osx.profile.xcconfig",
"./Pods/Target Support Files/Pods-pop-tests-osx/Pods-pop-tests-osx.release.xcconfig",
]
pop_test_xcconfigs.each do |pop_test_xcconfig|
new_xcconfig = File.read(pop_test_xcconfig).gsub(/OTHER_LDFLAGS/, "POD_OTHER_LDFLAGS")
new_xcconfig << "\nOTHER_LDFLAGS = $(POD_OTHER_LDFLAGS) -framework XCTest"
new_xcconfig << "\nFRAMEWORK_SEARCH_PATHS = $(inherited) \"$(PLATFORM_DIR)/Developer/Library/Frameworks\""
File.write(pop_test_xcconfig, new_xcconfig)
end
end