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 gitbrew install git-lfsbrew install --cask visual-studio-codebrew install python3brew install llvmbrew install --cask dockerbrew install cmakepip3 install chevronpip3 install jinja2pip3 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_iosto 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 Assetand select thelibConnectedSpacesPlatform.aDouble click inside Assets and the
libConnectedSpacesPlatform.awill unzip