Building CSP for iOS
This page details how to Build foundation locally and build the IOS DLLs on OSX.
Prerequisites
Please install the following packages:
Install HomeBrew
xcode (install through App Store)
brew install git
brew install git-lfs
brew install --cask visual-studio-code
brew install python3
brew install llvm
brew install --cask docker
brew install cmake
pip3 install chevron
pip3 install jinja2
pip3 install gitpython
Build Instructions
Build instructions for the Connected Spaces Platform project are below. First of all you’ll need to run the following script:
Clone the Connected Spaces Platform Repositiory
git clone --recurse-submodules https://github.com/magnopus-opensource/connected-spaces-platform.git
.Open Terminal and run
generate_solution_ios
to generate the Foundation solution.
If you get an error with premake not found, this is the first module built so you’ll need to checkout the submodules with
git submodule update --init --recursive
.
Open up Terminal in the Foundation Root Folder and run :
xcodebuild -configuration ReleaseDLL -project Library/ConnectedSpacesPlatform_ios.xcodeproj
Note: To Build Debug DLLs replace ReleaseDLL
with DebugDLL
and likewise with the directory location.
Where is the file output?
Once Foundation has finished building you will find the DLL has been generated in connected-spaces-platform\Library\Binaries\ios\ReleaseDLL
.
How to import to Unity
Open your unity project and click Assets in the top menu bar
Click
Import New Asset
and select thelibConnectedSpacesPlatform.a
Double click inside Assets and the
libConnectedSpacesPlatform.a
will unzip