大家好,

我想在本地移动设备上测试我的游戏,而不是在web/html上,所以我借了我的朋友的MacBook来尝试构建游戏。

正常情况下,我使用Windows,游戏运行正常, 当我从Git上拉取游戏并在MacBook上运行MacOS时,游戏也正常运行。

但是一旦我在iOS上运行游戏,就会遇到各种问题。有没有人知道如何绕过这个问题?

以下是游戏生成器控制台中发生的错误:

asdfSuccessfully extracted game.yydebug
SendAndRunXCode
About to execute:/bin/bash -l -c "xcode-select -p | sed 's/.app.*/.app/'"
_dir is /Users/cromamac/Documents/yunus_game/gamemaker_temp/GMS2TEMP/spicy_game_3E749251_VM/spicy_game
output_dir isspicytest/GM_IOS/spicy_game
About to execute:/bin/bash -l -c "mkdir -p spicytest/GM_IOS/spicy_game"
About to execute:/bin/bash -l -c "mkdir -p spicytest/GM_IOS/spicy_game/spicy_gameFromPC"
About to execute:/bin/bash -l -c "mkdir -p spicytest/GM_IOS/spicy_game/spicy_gameFromPC/spicy_game"
About to execute:/bin/bash -l -c "rm -rf spicytest/GM_IOS/spicy_game/spicy_game.app"
rsync -ap "/Users/cromamac/Documents/yunus_game/gamemaker_temp/GMS2TEMP/spicy_game_3E749251_VM/spicy_game/" "spicytest/GM_IOS/spicy_game/spicy_gameFromPC/"
rsync: spicytest/GM_IOS/spicy_game/spicy_gameFromPC/: mkpath: Permission denied
rsync(3359): error: unexpected end of file
rsync exited with non-zero status (11)
elapsed time 00:00:01.9009900s for command "/Users/Shared/GameMakerStudio2-LTS2026/Cache/runtimes/runtime-2026.0.0.23/bin/igor/osx/arm64/Igor" -j=8  -options="/Users/cromamac/Documents/yunus_game/gamemaker_temp/GMS2TEMP/build.bff" -v -- iOS Run started at 06/10/2026 17:11:23, exited with 1
FAILED: Run Program Complete
为什么这个构建失败的详细信息,请查看上面的整个日志并检查你的编译错误窗口。

我相信这个行是主要问题,但到目前为止,什么也没有工作:// mkpath: Permission denied