-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzenohc.podspec
More file actions
38 lines (35 loc) · 1.34 KB
/
zenohc.podspec
File metadata and controls
38 lines (35 loc) · 1.34 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
# zenohc.podspec
Pod::Spec.new do |s|
s.name = 'zenohc'
s.version = '1.8.0'
s.summary = 'Zenoh C library for iOS'
s.description = 'Zenoh C library xcframework for iOS platform'
s.homepage = 'https://github.com/VitaDynamics/zenohc-apple.git'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Your Name' => 'your@email.com' }
s.source = { :git => 'https://github.com/VitaDynamics/zenohc-apple.git', :tag => s.version.to_s }
s.ios.deployment_target = '13.0'
s.vendored_frameworks = 'zenohc.xcframework'
# 如果需要链接系统库
# s.libraries = 'c++'
# s.frameworks = 'Foundation'
# CocoaPods links this pod as -lzenohc (expects libzenohc.a). The simulator slice
# inside the xcframework is named zenohc-sim-universal.a, so we create a symlink
# in the build intermediates to satisfy the linker.
s.script_phases = [
{
:name => 'zenohc symlink (simulator)',
:execution_position => :before_compile,
:shell_path => '/bin/sh',
:script => <<-'SCRIPT'
set -e
if [ "${PLATFORM_NAME}" = "iphonesimulator" ]; then
dir="${PODS_XCFRAMEWORKS_BUILD_DIR}/zenohc"
if [ -f "${dir}/zenohc-sim-universal.a" ] && [ ! -f "${dir}/libzenohc.a" ]; then
ln -sf "zenohc-sim-universal.a" "${dir}/libzenohc.a"
fi
fi
SCRIPT
}
]
end