sweetpad icon indicating copy to clipboard operation
sweetpad copied to clipboard

Wrong parsing multi project workspace

Open ivan-gaydamakin opened this issue 1 year ago • 1 comments

I have project like: Apps/Test1/Test1.xcodeproj Apps/Test2/Test2.xcodeproj MainProject.xcworkspace

So I selected xcworkspace and sweetpad detected schemes, but when I tried to run scheme, I got error:


  "message": "ENOENT: no such file or directory, open '<absolete path to project>/Test1/Test1.xcodeproj/project.pbxproj'",
  "level": 3,
  "time": "2024-07-31T06:47:58.860Z",
  "command": "sweetpad.build.launch",
  "error": {
    "errno": -2,
    "code": "ENOENT",
    "syscall": "open",
    "path": "<absolete path to project>/Test1/Test1.xcodeproj/project.pbxproj"
  }
}

Directory in command should be: <absolete path to project>/Apps/Test1/Test1.xcodeproj/project.pbxproj

ivan-gaydamakin avatar Jul 31 '24 06:07 ivan-gaydamakin

Could you create and upload to GitHub some example project that doesn't work with extension? Some basic Xcode project with the same structure as your example

hyzyla avatar Aug 01 '24 18:08 hyzyla

sweetpad-test.zip

I have same issue. Could you check the sample project?

minhaaan avatar Sep 20 '24 00:09 minhaaan

I've updated the workspace parsing in the last version. Could you update the extension and check if it works for you?

hyzyla avatar Sep 22 '24 19:09 hyzyla

@hyzyla perfect! Thank you so much 👏

minhaaan avatar Sep 22 '24 21:09 minhaaan

thanks, now it works fine

ivan-gaydamakin avatar Sep 23 '24 06:09 ivan-gaydamakin