Skip to content

Building iOS on MacOS MS-hosted machine #247

@Stephan-DXRS

Description

@Stephan-DXRS

We're trying to build our Unity iOS app, but are running into an issue. We are using the UnitySetup task, which works great on a Windows MS-hosted machine. However, on MacOS it keeps complaining about not finding the Unity Hub executable.

After digging into the code, we found the following couple of lines:

// Setup and read inputs.
let unityHubExecutablePath = tl.getPathInput(customUnityHubPathInputVariableName);
if (!unityHubExecutablePath) {
    // TODO: Add default paths for macOS / Linux.
    unityHubExecutablePath = 'C:\\Program Files\\Unity Hub\\Unity Hub.exe';
}

We tried setting customUnityHubPath to /Applications/Unity Hub.app as this is the default location for Unity Hub on MacOS. But the pipeline fails: "Unable to locate executable file". If we understand correctly, the UnitySetup task expects Unity Hub to be installed on the machine and it's not installed on the MacOS images of Microsoft.

Is there a way (task) to download and install Unity Hub via a seperate task? We've looked into the unitysetup.powershell module, but this only lets you install the Unity Editor.

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions