vscode-swift icon indicating copy to clipboard operation
vscode-swift copied to clipboard

Support for iOS projects

Open yevhen opened this issue 1 year ago • 3 comments

First of all, I'd like to say that this extension is incredible! Great work!

The only issue is that iOS-only projects are not supported. Do you plan to provide support for xcodebuild?

yevhen avatar Sep 22 '24 08:09 yevhen

You might want to take a look at Sweetpad. Just tried it out and autocomplete and running on a device from VS Code worked out of the box.

JarnoRFB avatar Dec 20 '24 14:12 JarnoRFB

I filed this in the other extension repo ... let's see what happens.

https://github.com/sweetpad-dev/sweetpad/issues/100

Also I'd like this repository's opinion about such a feature as well, considering there haven't been any comments from the maintainers in this issue.

MahdiBM avatar Dec 25 '24 13:12 MahdiBM

As I see it the main issue is that the hooks needed to support this are no documented or guaranteed - Xcode is liable to change with no versioning (or guarantees of a version) as it sees fit. So even if it was possible to get building to work (which is possible today by switching out the build command with xcodebuild) or auto completion (still possible but harder IIRC) it could break at any time. So until the time iOS projects can be built with swift build (if that ever becomes a thing, I have no idea) it's always going to be an unsupported (officially) feature. My personal opinion

0xTim avatar Dec 30 '24 19:12 0xTim

Conversation about this can move to https://github.com/swiftlang/vscode-swift/discussions/1903. Closing this as not intended to be fixed. The focus of the extension is Swift package development in other domains such as server and embedded. For Swift package projects you can already specify the iOS SDK to build and get language support. For language support and code completion for your Xcode project, sourcekit-lsp has BSP support that you can look into to write your own build server or find an open source one.

award999 avatar Oct 28 '25 17:10 award999