Hi there,
I’ve received an error while I was trying to run the game on iOS simulator. I have no problem for building and making the app, but when I start the app on the simulator it will crash. I’ve tested with an empty 2d project on 3.8.0, 3.7.1 and 3.6.0 exact same issue.
MacBook Air, M1, 8GB
MacOs: Ventura 13.0
Xcode: 14.3.1 (14E300c)
Tested on: iOS 15.0, iOS 16.4
CC versions: 3.8.0, 3.7.1, 3.6.0
Also, here is the error I’ve gotten:
8-5-2023 12:38:50-debug: // ---- build task native:make ---- (220380ms)
8-5-2023 12:38:50-log: [task:make]: native:(make) in 220380 ms ✓, 23.333333333333332%
8-5-2023 12:38:50-log: [task:make]: success!
8-5-2023 12:38:50-debug: [Build Memory track]: builder:build-stage-total make start:285.58MB, end 254.28MB, increase: -32051.07KB
8-5-2023 12:38:50-debug: // ---- builder:run-build-stage-make ---- (220441ms)
8-5-2023 12:39:36-log: [task:run]: init options success, 10%
8-5-2023 12:39:36-log: [task:run]: native:(run) start..., 10%
8-5-2023 12:39:36-debug: // ---- build task native:run ----
8-5-2023 12:39:36-debug: // ---- builder:run-build-stage-run ----
8-5-2023 12:39:36-debug: Use build file cocos.compile.config.json in root(/Users/ali/Test_3_8_0/build/ios-002)
8-5-2023 12:39:38-log: [task:run]: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined, 36.66666666666667%
8-5-2023 12:39:38-log: [task:run]: Run build plugin native : run failed!, 23.333333333333332%
8-5-2023 12:39:38-warn: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at validateString (internal/validators.js:124:11)
at Object.join (path.js:1039:7)
at IOSPackTool.readBundleId (/Applications/CocosCreator/Creator/3.8.0/CocosCreator.app/Contents/Resources/resources/3d/engine/scripts/native-pack-tool/source/platforms/ios.ts:233:30)
at IOSPackTool.runIosSimulator (/Applications/CocosCreator/Creator/3.8.0/CocosCreator.app/Contents/Resources/resources/3d/engine/scripts/native-pack-tool/source/platforms/ios.ts:296:31)
at IOSPackTool.run (/Applications/CocosCreator/Creator/3.8.0/CocosCreator.app/Contents/Resources/resources/3d/engine/scripts/native-pack-tool/source/platforms/ios.ts:156:27)
at NativePackToolManager.run (/Applications/CocosCreator/Creator/3.8.0/CocosCreator.app/Contents/Resources/resources/3d/engine/scripts/native-pack-tool/source/base/manager.ts:65:20)
at PackToolHandler.runTask (/Applications/CocosCreator/Creator/3.8.0/CocosCreator.app/Contents/Resources/app.asar/modules/platform-extensions/extensions/native/dist/builder/native-utils/index.ccc:1:3034)
at BuildStageTask.run (/Applications/CocosCreator/Creator/3.8.0/CocosCreator.app/Contents/Resources/app.asar/modules/platform-extensions/extensions/native/dist/builder/hooks.ccc:1:7043)
at BuildStageTask.handleHook (/Applications/CocosCreator/Creator/3.8.0/CocosCreator.app/Contents/Resources/app.asar/builtin/builder/dist/worker/builder/stage-task-manager.ccc:1:1611)
at BuildStageTask.runPluginTask (/Applications/CocosCreator/Creator/3.8.0/CocosCreator.app/Contents/Resources/app.asar/builtin/builder/dist/worker/builder/manager/task-base.ccc:1:1226)
8-5-2023 12:39:38-log: selected simualtor iPhone SE (3rd generation) Simulator (16.4) (AD58A5F8-42A6-4038-A27E-B49C8BE7AA27)
8-5-2023 12:39:38-error: run package /Users/ali/Test_3_8_0/build/ios-002 failed!
8-5-2023 12:39:38-debug: [Build Memory track]: builder:build-stage-total run start:253.07MB, end 253.20MB, increase: 138.61KB
8-5-2023 12:39:38-debug: // ---- builder:run-build-stage-run ---- (2274ms)
8-5-2023 12:39:38-log: [task:run]: failed!