-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.iOS.xcconfig
157 lines (120 loc) · 4.58 KB
/
Package.iOS.xcconfig
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/////////////////////////////////////////////////////////////////////////////////
///
/// Package.xcconfig
///
/// ISSUE: xcconfig file does not set SKIP_INSTALL to NO. Maybe for security?
/// WORKAROUND: manually set SKIP_INSTALL to NO when xcode project is created.
/// Use: swift package generate-xcodeproj --xcconfig-overrides Package.xcconfig
/// Limits:
/// * currently assigns the same xcconfig file to both debug and release builds
/// * uses only the last --xcconfig-overrides PATH_FILE
/// * drag & drop *.framework to Project Panel > Target > Embedded Binaries
//////////////
/// TARGET ///
//////////////
// iOS Deployment Target
//
// Code will load on this and later versions of iOS. Framework APIs that are
// unavailable in earlier versions will be weak-linked; your code should check for `null`
// function pointers or specific system versions before calling newer APIs.
IPHONEOS_DEPLOYMENT_TARGET = 11.4
// :macOS: MACOSX_DEPLOYMENT_TARGET=10.13
// Targeted Device Family
//
// The build system uses the selected device to set the correct value for the
// `UIDeviceFamily` key it adds to the target's `Info.plist` file. This also drives the
// --target-device flag to actool, which determines the idioms selected during catalog
// compilation for iOS platforms.
// :iOS:
TARGETED_DEVICE_FAMILY = 1,2
// Base SDK
//
// The name or path of the base SDK being used during the build. The product will be
// built against the headers and libraries located inside the indicated SDK. This path
// will be prepended to all search paths, and will be passed through the environment to
// the compiler and linker. Additional SDKs can be specified in the `ADDITIONAL_SDKS`
// setting.
SDKROOT = iphoneos
// :macOS: SDKROOT = macosx
// Supported Platforms
//
// The list of supported platforms from which a base SDK can be used. This setting is
// used if the product can be built for multiple platforms using different SDKs.
// macosx iphoneos iphonesimulator appletvos appletvsimulator watchos watchsimulator
SUPPORTED_PLATFORMS = iphoneos iphonesimulator
// NOTE: A example which used CocoaPod's Ruby gem `xcodeproj` removed `SUPPORTED_PLATFORMS`.
///////////////
// PACKAGING //
///////////////
// Defines Module
//
// If enabled, the product will be treated as defining its own module. This enables
// automatic production of LLVM module map files when appropriate, and allows the product
// to be imported as a module.
DEFINES_MODULE = YES
//////////////////
/// DEPLOYMENT ///
//////////////////
/// Deployment Location
///
/// If enabled, built products are placed in their installed locations
/// in addition to the built products folder.
/// Default: NO
//DEPLOYMENT_LOCATION = YES
/// Deployment Postprocessing
///
/// If enabled, indicates that binaries should be stripped
/// and file mode, owner, and group information should be set to standard values.
/// Default: NO
//DEPLOYMENT_POSTPROCESSING = NO
/// Installation Build Products Location
///
/// The path at which all products will be rooted when performing an install build.
/// Default: /tmp/$(PROJECT_NAME).dst
//DSTROOT = /opt/frameworks
/// Installation Directory
///
/// The directory in which to install the build products.
/// Result: DSTROOT + INSTALL_PATH + $(PROJECT_NAME)
/// Default: $(LOCAL_LIBRARY_DIR)/Frameworks aka /Library/Frameworks
//INSTALL_PATH = /
/// Skip Install
///
/// If enabled, don't install built products
/// even if deployment locations are active.
/// Default: YES
/// Workaround: manually set to no when xcode project is generated.
//SKIP_INSTALL = YES
/// Strip Debug Symbols During Copy
///
/// Specifies whether binary files that are copied during the build,
/// such as in a Copy Bundle Resources or Copy Files build phase,
/// should be stripped of debugging symbols.
/// It does not cause the linked product of a target to be stripped.
/// Default: Debug NO, Release YES
//COPY_PHASE_STRIP = NO
/// Strip Linked Product
///
/// If enabled, the linked product of the build will be stripped of symbols
/// when performing deployment postprocessing.
/// Default: YES
//STRIP_INSTALLED_PRODUCT
/// Strip Swift Symbols
///
/// Adjust the level of symbol stripping specified by the STRIP_STYLE setting
/// so that when the linked product of the build is stripped,
/// all Swift symbols will be removed.
/// Default: YES
//STRIP_SWIFT_SYMBOLS
// Swift Language Version
//
//
SWIFT_VERSION = 4.2
/////////////////
//// RELEASE ////
/////////////////
// Validate Built Product
//
// If enabled, perform validation checks on the product as part of the build process.
// :iOS:
VALIDATE_PRODUCT = YES