6 ms·
Something I'd love to see is being able to use the VSCode extension for iOS / macOS development. I wouldn't expect all the bells and whistles of Xcode obviously
by terhechte 2y ago
Something I'd love to see is being able to use the VSCode extension for iOS / macOS development. I wouldn't expect all the bells and whistles of Xcode obviously (e.g. previews, run integration). However I'd love to use VSCode because I prefer their tradeoffs to Xcodes.
The advantage for Swift would be that potentially more developers use the VSCode extension which would hopefully improve the quality and incentivise more of them to maybe contribute to it.
If it's already possible then maybe a section in the readme on how to achieve this? (e.g. how to open an iOS project folder and get completions for Apple's frameworks).
- userm0d 2y agoWe already have a NeoVim plugin [0] that makes replacing Xcode somewhat possible. It's not perfect and requires that you have Xcode around for certain scenarios but I have been using it as my daily driver for the last month. I think you would only need xcode-build-server [1] in order to get autocompletion in VSCode. [0] https://github.com/wojciech-kulik/xcodebuild.nvim https://github.com/wojciech-kulik/xcodebuild.nvim [1] https://github.com/SolaWing/xcode-build-server https://github.com/SolaWing/xcode-build-server
- terhechte 2y agoThank you! Personally I actually prefer Neovim over vscode, so this is awesome. will try it out.
- Zanfa 2y agoWhat works quite well for iOS/macOS apps is breaking the project into a barebones Xcode project plus a Swift package that contains all of the code. SPM projects work well with VSCode and you get full auto-complete support with the official Swift plugin.
- terhechte 2y agoThanks for the suggestion, I'll give that a try. Obviously this will not work with large existing codebases; but for new projects I'll try how well it works.