Skip to content

Commit 686ff59

Browse files
NicolasHughusthycfmassa
authored
[iOS] podspec file for Cocoapods release, pod name: LibTorchvision (#4055) (#4074)
Co-authored-by: Yuchen Huang <[email protected]> Co-authored-by: Francisco Massa <[email protected]>
1 parent 89f8db6 commit 686ff59

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

ios/LibTorchvision.podspec

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
pytorch_version = '1.9.0'
2+
3+
Pod::Spec.new do |s|
4+
s.name = 'LibTorchvision'
5+
s.version = '0.10.0'
6+
s.authors = 'PyTorch Team'
7+
s.license = { :type => 'BSD' }
8+
s.homepage = 'https://github.com/pytorch/vision'
9+
s.source = { :http => "https://ossci-ios.s3.amazonaws.com/libtorchvision_ops_ios_#{s.version}.zip" }
10+
s.summary = '"The C++ library of TorchVision ops for iOS'
11+
s.description = <<-DESC
12+
The C++ library of TorchVision ops for iOS.
13+
This version (#{s.version}) requires the installation of LibTorch #{pytorch_version} or LibTorch-Lite #{pytorch_version}.
14+
DESC
15+
s.ios.deployment_target = '12.0'
16+
s.vendored_libraries = 'install/lib/*.a'
17+
s.user_target_xcconfig = {
18+
'VALID_ARCHS' => 'x86_64 arm64',
19+
'OTHER_LDFLAGS' => '$(inherited) -force_load "$(PODS_ROOT)/LibTorchvision/install/lib/libtorchvision_ops.a"',
20+
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++14',
21+
'CLANG_CXX_LIBRARY' => 'libc++'
22+
}
23+
s.library = ['c++', 'stdc++']
24+
end

0 commit comments

Comments
 (0)