Installation iOS (Unity Plugin)

We have 2 different methods for building for iOS:

  1. Installation for an iOS Application using XCode (no Unity)

  2. Installation for an iOS Deployed Unity App (Unity Plugin)

Both will use the binaries we have already built for each platform and architecture. If you want to see how the binaries were built you can check out 3rdparty/build_ios_dep.sh

To rebuild dependencies, in a git bash terminal

cd Sensor-Stream-Pipe/3rdparty
./buid_ios_dep.sh

This will download/build/install dependencies in a tmp directory. The result is a *_ssp_iosdep.tar.gz file.

Problems?! (shocker)

Reach out on our discord and we will get you going!

Building for an iOS App (no Unity)

1.0 Pre-Installation Requirements

1.1 Install Xcode

1.2 Install Xcode command line tools

sudo xcode-select --install

1.3 Install cmake

brew install cmake

2.0 Download and Install SSP

2.1 FOR SIMULATOR - To download and make for iOS Simulator (optional, no real need to, but here is how, skip this step and go to 2.2)

git clone https://github.com/moetsi/Sensor-Stream-Pipe.git
cd Sensor-Stream-Pipe
mkdir build-simulator && cd build-simulator
cmake -G Xcode \
    -DCMAKE_TOOLCHAIN_FILE=../3rdparty/ios.toolchain.cmake \
    -DPLATFORM=SIMULATOR64 \
    ..
open ssp.xcodeproj

2.2 FOR DEVICE - To download and make iOS Simulator (Do this)

git clone https://github.com/moetsi/Sensor-Stream-Pipe.git
cd Sensor-Stream-Pipe
mkdir build-ios && cd build-ios
cmake -G Xcode \
    -DCMAKE_TOOLCHAIN_FILE=../3rdparty/ios.toolchain.cmake \
    -DPLATFORM=OS64 \
    ..
open ssp.xcodeproj

3.0 Use it!

Now checkout Streaming iOS ARKit RGB-D Data to see how you can stream ARFrame data with Sensor Stream Server to Sensor Stream Client.

Building for an iOS deployed Unity App (Unity Plugin)

1.0 Pre-Installation Requirements

1.1 Install Xcode

1.2 Install Xcode command line tools

sudo xcode-select --install

1.3 Install cmake

brew install cmake

2.0 Download and Install SSP

2.1 To download and make iOS Device

git clone https://github.com/moetsi/Sensor-Stream-Pipe.git
cd Sensor-Stream-Pipe
mkdir build-ios && cd build-ios
cmake -G Xcode \
    -DCMAKE_TOOLCHAIN_FILE=../3rdparty/ios.toolchain.cmake \
    -DPLATFORM=OS64 \
    ..
cmake --build . --target unity --config Release
mv ssp_plugin_unity ~/Test1/Assets/Plugins/iOS

If you get this issue

https://github.com/leetal/ios-cmake/issues/52

Run this:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

3.0 Use it!

Now checkout Streaming iOS ARKit RGB-D Data to see how you can stream ARFrame data with Sensor Stream Server to Sensor Stream Client.

Last updated