Open
Description
Description:
While using the sweetpad extension in VSCode, an error occurs during the execution of the test command. The issue is caused by multiple matching destinations being detected, leading to ambiguous selection and failure in fetching the build settings.
The error occurs automatically when the sweetpad extension tries to run a test build. Here's the error message
Feature
is a target defined in the Swift Package Manager.
{
"message": "Both stdout and stderr are not empty for \"xcodebuild\" command",
"level": 2,
"time": "2024-10-19T01:35:52.823Z",
"stdout": "[\n\n]",
"stderr": "--- xcodebuild: WARNING: Using the first of multiple matching destinations:\n{ platform:macOS, arch:arm64e, id:XXXXXXXX-XXXXXXXXXXXX, name:My Mac }\n{ platform:macOS, arch:arm64, id:XXXXXXXX-XXXXXXXXXXXX, name:My Mac }\n{ platform:iOS, arch:arm64, id:XXXXXXXX-XXXXXXXXXXXX, name:TestDevice1 }\n{ platform:iOS, arch:arm64, id:XXXXXXXX-XXXXXXXXXXXX, name:TestDevice2 }\n",
"command": "xcodebuild",
"args": [
"-showBuildSettings",
"-scheme",
"Feature",
"-workspace",
"/path/to/project/App.xcworkspace",
"-configuration",
"Debug",
"-json"
],
"cwd": "/path/to/project"
}
{
"message": "Error fetching build settings",
"level": 3,
"time": "2024-10-19T01:35:52.823Z",
"stackTrace": "Error: Error fetching build settings\n at new qv (/Users/dummyuser/.vscode/extensions/sweetpad.sweetpad-0.1.37/out/extension.js:233:12440)\n at /Users/dummyuser/.vscode/extensions/sweetpad.sweetpad-0.1.37/out/extension.js:235:27\n at Generator.next (<anonymous>)\n at o (/Users/dummyuser/.vscode/extensions/sweetpad.sweetpad-0.1.37/out/extension.js:1:1350)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)",
"command": "sweetpad.build.test",
"error": {}
}