- Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathCodableWrapper.podspec
More file actions
Latest commit
44 lines (35 loc) · 1.64 KB
/
Copy pathCodableWrapper.podspec
File metadata and controls
44 lines (35 loc) · 1.64 KB
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
#
# Be sure to run `pod lib lint CodableWrapper.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.newdo |s|
s.name='CodableWrapper'
s.version='1.1.1'
s.summary='A short description of CodableWrapper.'
s.description=<<-DESC
CodableWrapper Pod
DESC
s.homepage='https://github.com/winddpan/CodableWrapper'
s.author={'winddpan'=>'https://github.com/winddpan'}
s.source={:git=>'git@github.com:winddpan/CodableWrapper.git',:tag=>s.version.to_s}
s.ios.deployment_target='13.0'
s.source_files='Sources/CodableWrapper/*{.swift}'
s.preserve_paths=["Package.swift","Sources/CodableWrapperMacros","Tests","Bin"]
s.pod_target_xcconfig={
"OTHER_SWIFT_FLAGS"=>"-Xfrontend -load-plugin-executable -Xfrontend $(PODS_BUILD_DIR)/CodableWrapper/release/CodableWrapperMacros-tool#CodableWrapperMacros"
}
s.user_target_xcconfig={
"OTHER_SWIFT_FLAGS"=>"-Xfrontend -load-plugin-executable -Xfrontend $(PODS_BUILD_DIR)/CodableWrapper/release/CodableWrapperMacros-tool#CodableWrapperMacros"
}
script=<<-SCRIPT
env -i PATH="$PATH" "$SHELL" -l -c "swift build -c release --package-path \\"$PODS_TARGET_SRCROOT\\" --build-path \\"${PODS_BUILD_DIR}/CodableWrapper\\""
SCRIPT
s.script_phase={
:name=>'Build CodableWrapper macro plugin',
:script=>script,
:execution_position=>:before_compile
}
end