-
Notifications
You must be signed in to change notification settings - Fork 18
/
Podfile
104 lines (88 loc) · 2.06 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
source 'https://cdn.cocoapods.org/'
# Library
project 'Backtrace.xcworkspace'
# Definitions
def shared_pods
# Define shared CocoaPods here
pod 'PLCrashReporter', '1.11.1'
end
def shared_test_pods
shared_pods
pod 'Nimble', '~> 10.0.0'
pod 'Quick', '~> 5.0.1'
end
def shared_ios_mac_pods
shared_pods
end
def shared_test_ios_mac_pods
shared_test_pods
shared_ios_mac_pods
end
inhibit_all_warnings!
## Framework iOS
target 'Backtrace-iOS' do
platform :ios, '12.0'
use_frameworks!
shared_ios_mac_pods
target 'Backtrace-iOSTests' do
inherit! :search_paths
shared_test_ios_mac_pods
end
end
## Framework macOS
target 'Backtrace-macOS' do
platform :osx, '10.13'
use_frameworks!
shared_ios_mac_pods
target 'Backtrace-macOSTests' do
inherit! :search_paths
shared_test_ios_mac_pods
end
end
## Framework tvOS
target 'Backtrace-tvOS' do
platform :tvos, '12.0'
use_frameworks!
shared_pods
target 'Backtrace-tvOSTests' do
inherit! :search_paths
shared_test_pods
end
end
# Examples
## Definitions
def local_backtrace
pod 'Backtrace', :path => "./Backtrace.podspec"
end
## Example targets
target 'Example-iOS' do
platform :ios, '12.0'
use_frameworks!
local_backtrace
end
target 'Example-iOS-ObjC' do
platform :ios, '12.0'
use_frameworks!
local_backtrace
end
target 'Example-macOS-ObjC' do
platform :osx, '10.13'
use_frameworks!
local_backtrace
end
target 'Example-tvOS' do
platform :tvos, '12.0'
use_frameworks!
local_backtrace
end
# Post install configuration
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['DEBUG_INFORMATION_FORMAT'] = 'dwarf-with-dsym'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
config.build_settings['MACOSX_DEPLOYMENT_TARGET'] = '10.13'
config.build_settings['TVOS_DEPLOYMENT_TARGET'] = '12.0'
end
end
end