sweetpad-dev / sweetpad

Develop Swift/iOS projects using VSCode
https://marketplace.visualstudio.com/items?itemName=sweetpad.sweetpad
MIT License
586 stars 19 forks source link

Sweetpad issue: No schemes #34

Open benjaminbelloeil opened 3 months ago

benjaminbelloeil commented 3 months ago

Please describe your issue here.

Last logs:

{
  "message": "Failed to get schemes",
  "level": 3,
  "time": "2024-08-13T18:58:29.249Z",
  "error": {
    "options": {
      "context": {
        "errorMessage": "Command failed with exit code 74: xcodebuild -list -json",
        "stderr": "2024-08-13 12:58:28.095 xcodebuild[51488:4760023] Writing error result bundle to /var/folders/j8/058xv25n4lz_q960q7sgyt7h0000gn/T/ResultBundle_2024-13-08_12-58-0028.xcresult\nxcodebuild: error: Unable to read project 'Buffetec.xcodeproj'.\n\tReason: The project ‘Buffetec’ cannot be opened because it is in a future Xcode project file format (77). Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode.\n\n",
        "command": "xcodebuild",
        "args": [
          "-list",
          "-json"
        ],
        "cwd": "/Users/benjaminbelloeil/Desktop/Career/Programs/Swift/Buffetec"
      }
    }
  }
}
{
  "message": "Error executing \"xcodebuild\" command",
  "level": 3,
  "time": "2024-08-13T18:59:42.809Z",
  "command": "sweetpad.build.refreshView",
  "errorContext": {
    "errorMessage": "Command failed with exit code 74: xcodebuild -list -json -workspace /Users/benjaminbelloeil/Desktop/Career/Programs/Swift/Buffetec/Buffetec.xcodeproj/project.xcworkspace",
    "stderr": "2024-08-13 12:59:41.698 xcodebuild[51629:4761716] Writing error result bundle to /var/folders/j8/058xv25n4lz_q960q7sgyt7h0000gn/T/ResultBundle_2024-13-08_12-59-0041.xcresult\nxcodebuild: error: Unable to load workspace '/Users/benjaminbelloeil/Desktop/Career/Programs/Swift/Buffetec/Buffetec.xcodeproj/project.xcworkspace'.\n\tReason: The project ‘Buffetec’ cannot be opened because it is in a future Xcode project file format (77). Adjust the project format using a compatible version of Xcode to allow it to be opened by this version of Xcode.",
    "command": "xcodebuild",
    "args": [
      "-list",
      "-json",
      "-workspace",
      "/Users/benjaminbelloeil/Desktop/Career/Programs/Swift/Buffetec/Buffetec.xcodeproj/project.xcworkspace"
    ],
    "cwd": "/Users/benjaminbelloeil/Desktop/Career/Programs/Swift/Buffetec"
  }
}
hyzyla commented 3 months ago

It seems like you have older version of Xcode installed on your machine, than version of Xcode by which project was created. I think you need to install latest version of Xcode 16.1. You can use Xcodes app for that https://www.xcodes.app/ for that. But don't forget to "make it active"

aelam commented 3 months ago

Probably You can't open the project in Xcode either? I had a problem with the x.xcworkspace file not working properly. then I copy an old one from my project, it worked