-
Notifications
You must be signed in to change notification settings - Fork 30
/
CodableWrapper.podspec
44 lines (35 loc) · 1.63 KB
/
CodableWrapper.podspec
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.new do |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 => '[email protected]: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#CodableWrapperMacros"
}
s.user_target_xcconfig = {
"OTHER_SWIFT_FLAGS" => "-Xfrontend -load-plugin-executable -Xfrontend $(PODS_BUILD_DIR)/CodableWrapper/release/CodableWrapperMacros#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