Skip to content

Instantly share code, notes, and snippets.

@AMZN-alexpete
Last active October 9, 2023 23:14
Show Gist options
  • Select an option

  • Save AMZN-alexpete/0c1b91f38dadc9418d0624f62e7ee395 to your computer and use it in GitHub Desktop.

Select an option

Save AMZN-alexpete/0c1b91f38dadc9418d0624f62e7ee395 to your computer and use it in GitHub Desktop.
O3DE iOS builds
  1. clone and setup o3de repo
git clone https://github.com/o3de/o3de
./o3de/python/get_python.sh
./o3de/scripts/o3de register --this-engine
  1. clone the project you want to build if needed
git clone http://github.com/o3de/o3de-atom-sampleviewer
cd o3de-atom-sampleviewer
  1. (optional) set the engine to use for the project
echo '"{ "engine_path":"~/o3de" }' > user/project.json
  1. 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
  1. run asset processor for the project
./build/mac_xcode/bin/profile/AssetProcessorBatch --platforms=ios --project-path ~/o3de-atom-sampleviewer
  1. 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment