- clone and setup o3de repo
git clone https://github.com/o3de/o3de
./o3de/python/get_python.sh
./o3de/scripts/o3de register --this-engine
- clone the project you want to build if needed
git clone http://github.com/o3de/o3de-atom-sampleviewer
cd o3de-atom-sampleviewer
- (optional) set the engine to use for the project
echo '"{ "engine_path":"~/o3de" }' > user/project.json
- build host tools - be sure to specify Xcode generator, or make files or ninja configs might be used!
cmake -B build/mac_xcode -G "Xcode" -DLY_UNITY_BUILD=ON
cmake --build build/mac_xcode --target Editor AssetProcessor AssetProcessorBatch AssetBundler AssetBundlerBatch --config profile
- run asset processor for the project
./build/mac_xcode/bin/profile/AssetProcessorBatch --platforms=ios --project-path ~/o3de-atom-sampleviewer
- generate the iOS XCode project
cmake -B build/ios_mono -G "Xcode" -DCMAKE_TOOLCHAIN_FILE=~/o3de/cmake/Platform/iOS/Toolchain_ios.cmake -DLY_UNITY_BUILD=ON -DLY_MONOLITHIC_GAME=1
- If building Kythera you may need to include
-DBUILD_KYTHERA_STATIC=ON
- Additional Asset Processor vars
-DLY_ASSET_DEPLOY_MODE=LOOSE -DLY_ASSET_DEPLOY_ASSET_TYPE=ios
- If there are issues with locating libraries
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
- You can specify a dev team using
-DLY_IOS_DEVELOPMENT_TEAM=<dev team id>