Activate Unity license from CLI for CI

I try to setup a CI for our Unity powered app.

The activation commands looks like the following:

/Applications/Unity/Unity.app/Contents/MacOS/Unity \
 -quit \
 -batchmode \
 -nographics \
 -serial  'xxx' \
 -username 'xxx' \
 -password 'xxx'

The command returns without error.
However it seems the license it not activated at all.
Build:

/Applications/Unity/Unity.app/Contents/MacOS/Unity \
  -batchmode \
  -nographics \
  -logFile ./unity-build.log \
  -projectPath `pwd` \
  -buildTarget ios \
  -executeMethod xxx.Run \
  -quit

fails with: Fatal error! Build target platform 'ios' is not a supported build target.

Locally that error was resolved when activating the license.
Can someone help out with activating the license on graphicless CI systems?

  1. the new installer for Unity requires that you install IOS as a platform explicitly (at least on windows) – given that all platforms now support exporting to ios, licencing is probably not the issue

–a friend of mine cough had this problem and that’s how he solved it :slight_smile:

Good luck with the joys of CI :slight_smile: