forked from segmentio/analytics-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPodfile
50 lines (40 loc) · 1.25 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require File.expand_path("../scripts/build.rb", __FILE__)
platform :ios, '7.0'
inhibit_all_warnings!
def import_utilities
pod 'TRVSDictionaryWithCaseInsensitivity', '0.0.2'
end
def import_pods
Build.all_pods.each do |p|
send :pod, p.name, p.version
end
import_utilities
end
target 'Analytics', :exclusive => true do
import_pods
end
target 'iOS Tests', :exclusive => true do
import_pods
pod 'OCMock', '~> 3.1.2'
pod 'OCMockito', '~> 1.4.0'
pod 'Expecta', '~> 1.0.0'
end
post_install do |installer|
installer.project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ARCHS'] = "i386 armv7 armv7s x86_64 arm64"
config.build_settings['VALID_ARCHS'] = "i386 armv7 armv7s x86_64 arm64"
end
end
default_library = installer.libraries.detect { |i| i.target_definition.name == 'Analytics' }
[default_library.library.xcconfig_path('Debug'), default_library.library.xcconfig_path('Release')].each do |path|
File.open("config.tmp", "w") do |io|
f = File.read(path)
["icucore", "z", "sqlite3", "c++"].each do |lib|
f.gsub!(/-l"#{lib}"/, '')
end
io << f
end
FileUtils.mv("config.tmp", path)
end
end