Skip to content

Commit 7b407ad

Browse files
committed
Merge branch 'xcode_16' of https://github.com/firebase/firebase-unity-sdk into xcode_16
2 parents fdb8bdc + 9a8eef8 commit 7b407ad

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gha/unity/unity_installer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,10 @@ def download_unity_hub(unity_hub_url, unity_hub_installer, max_attempts=1):
311311

312312
def install_unity(unity_full_version, changeset):
313313
unity_hub_executable = SETTINGS["unity_hub_executable"][get_os()]
314-
run(f'{unity_hub_executable} install --version {unity_full_version} --changeset {changeset}', max_attempts=MAX_ATTEMPTS)
314+
architecture_flag = ''
315+
if platform.system() == 'Darwin' and 'arm' in platform.machine().lower():
316+
architecture_flag = '--architecture arm64'
317+
run(f'{unity_hub_executable} install --version {unity_full_version} --changeset {changeset} {architecture_flag}', max_attempts=MAX_ATTEMPTS)
315318
run(f'{unity_hub_executable} editors --installed')
316319

317320

0 commit comments

Comments
 (0)