Image from Pixabay.
- Xcode 10.3 (installed on a Mac machine)
- An iOS Simulator running iOS 12 or above
- Xcode command-line tools (run
xcode-select --install
) - CocoaPods (run
sudo gem install cocoapods
)
- Clone the TensorFlow examples GitHub repository to your computer to get the
demo
application.
git clone https://github.com/tensorflow/examples
- Install the pod to generate the workspace file:
cd examples/lite/examples/image_segmentation/ios && pod install
Note: If you have installed this pod before and that command doesn't work, trypod update
.
At the end of this step you should have a directory calledImageSegmentation.xcworkspace
. - Open the project in Xcode with the following command:
open ImageSegmentation.xcworkspace
This launches Xcode and opens theImageSegmentation
project. - Select
Product -> Run
to install the app on an iOS Simulator or a physical device.