pytorch/ios
Tao Xu f114c33e69 Fix iOS CI (#30327)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/30327

### Summary

Seems like starting from macOS 10.15, we can no longer get access to the `Downloads` folder in our macOS machines.

```
permissionError: [Errno 1] Operation not permitted: '/Users/distiller/Downloads'
```

The fix is to change the conda download directory to ${HOME}

### Test Plan

- iOS jobs are back to normal
- Don't break other jobs

Test Plan: Imported from OSS

Differential Revision: D18717380

Pulled By: xta0

fbshipit-source-id: cad754076bf4ae5035741aa57a310ad87c76726e
2019-12-03 11:24:21 -08:00
..
TestApp Fix iOS CI (#30327) 2019-12-03 11:24:21 -08:00
.gitignore Add iOS test app skeleton (#26261) 2019-09-17 11:06:57 -07:00
LibTorch.h Change the source link in podspec (#26089) 2019-09-13 15:00:31 -07:00
LibTorch.podspec Revert D17908478: Switch PyTorch/Caffe2 to C++14 2019-11-27 14:57:05 -08:00
README.md Update the link for iOS demo app in README.md (#27145) 2019-10-03 13:43:58 -07:00

PyTorch for iOS

Cocoapods Developers

PyTorch is now available via Cocoapods, to integrate it to your project, simply add the following line to your Podfile and run pod install

pod 'LibTorch'

Import the library

For Objective-C developers, simply import the umbrella header

#import <LibTorch/LibTorch.h>

For Swift developers, you need to create an Objective-C class as a bridge to call the C++ APIs. We highly recommend you to follow the Image Classification demo where you can find out how C++, Objective-C and Swift work together.

Disable Bitcode

Since PyTorch is not yet built with bitcode support, you need to disable bitcode for your target by selecting the Build Settings, searching for Enable Bitcode and set the value to No.

LICENSE

PyTorch is BSD-style licensed, as found in the LICENSE file.