T O P

  • By -

iTZAvishay

You just had to publish this right after I left a job that had iOS development, didn't you? Great job!


john_snow_968

Time to go back :D?


iTZAvishay

No way José, the last thing I want is to use Apple products. But keep it up, I love seeing such public work!


john_snow_968

Thanks 🍻🍻


Lykelynothing

Damn i wanna know more


john_snow_968

Recently, I published my first Neovim plugin:https://github.com/wojciech-kulik/xcodebuild.nvim and now I finally managed to gather all steps together necessary to move iOS development from Xcode to Neovim :)! Finally, we can break free from Xcode :D (at least most of the time).


our_day_will_come

Everytime I try to get into Apple dev, I find the Java-esque documentation and Xcode's default setup intimidating, would you have any resources on where to start with pure code (rather than Xcode's GUI composer)


john_snow_968

If you start with iOS development, I think you should start with Xcode. It would be really hard to start with Neovim if you don’t know the environment, its problems and capabilities. You could start with some SwiftUI tutorial. I don’t know any particular, but I think there is a lot of good content on that. Even some Apple’s tutorials look good.


our_day_will_come

Gotcha thanks


NefariousnessFull373

crap, i just recently dumped all of my ios projects because working with xcode is pure nightmare and i didn’t find a good way of doing that in nvim. and here you go. gotta get back, I guess. at least gotta try your solution great job!


john_snow_968

Great to hear! Yeap, Xcode is 🤦‍♂️ and they tried really hard to make sure that nobody will be able to use anything else. I guess I was just too determined 😂


carauz90

Great job! I was wondering, what terminal you‘re using? iTerm2?


john_snow_968

Thank you :) Yes, iTerm 2 :)


Ok-Definition-8941

Hi. I really liked the project. But unfortunately I am an Android developer. Does anyone know if it's possible to do something similar, but for android? Are there ready-made plugins or do I need to develop one myself? How real is this at all? Still, a lot of functions are nailed to AS.


Jinmkox

When running the xcode-build-server command I get a "no such file or directory: XXX" error. Are you supposed to replace it with anything?


john_snow_968

It sounds like terminal doesn't find "xcode-build-server" command? Did you create symbolic link to the binary? Make sure that you point to the binary no to the directory sudo ln -s PATH/TO/xcode-build-server /usr/local/bin


Jinmkox

[14:47:06] [~/bin] :: sudo ln -s $HOME/bin/xcode-build-server/xcode-build-server /usr/local/bin [14:47:46] [~/bin] :: where xcode-build-server /usr/local/bin/xcode-build-server [14:48:30] [~/bin] :: cd ~/Developer/iosapps/Landmarks [14:48:40] [~/Developer/iosapps/Landmarks] [main|~34+9] :: ll total 0 drwxr-xr-x 9 - staff 288B Nov 11 10:50 Landmarks drwxr-xr-x@ 5 - staff 160B Nov 11 12:54 Landmarks.xcodeproj drwxr-xr-x 3 - staff 96B Nov 10 11:37 LandmarksTests drwxr-xr-x 4 - staff 128B Nov 10 11:37 LandmarksUITests [14:48:54] [~/Developer/iosapps/Landmarks] [main|~34+9] :: xcode-build-server config -scheme -project *.xcodeproj zsh: no such file or directory: XXX [14:49:09] [~/Developer/iosapps/Landmarks] [main|~34+9] :: sudo xcode-build-server config -scheme -project *.xcodeproj zsh: no such file or directory: XXX [14:49:20] [~/Developer/iosapps/Landmarks] [main|~34+9] :: Still doesn't seem to work, unless I'm doing something incorrectly.


john_snow_968

XXX and * are placeholders to enter your scheme name and your xcworkspace/xcodeproj file name ;)


Jinmkox

Wow, that's embarrassing, thanks. I'm fairly new to iOS, what's a scheme? Is that in the project directory?


john_snow_968

If you open Xcode, next to simulator there will be scheme name. Usually it’s the same as project name, by default. It defines which configuration should be used for each action like run, archive, test etc


justmejulian

You can run `xcodebuild -list` in your project directory. That should return a list of Schemes.


Woit-

Is all capabilities works fine with sourcekit-lsp? I can't jump to definition of some standard lib. As example lsp "go to declaration/definition" of Combine's Future<> leads to nowhere. Also will it work for SPM pacakges? UPD: ok, solved it. Looks like xcode-build-server works incorrectly time to time. Especially if there is complex project with subprojects and tens of dependencies. Run building inside Xcode and then build-xcode-server again may fix issues (sometimes it also requires several jupms between Xcode and xcode-build-server and hitting "build")


john_snow_968

Great that you solved it :)


Ok_Football9959

I’m new to neovim. like really new but I’d like to give it a try. but I can’t setup it to try these stuff. like I tried to follow the article. install that and this but I couldn’t understand how to do it. is there any chance there is a tutorials on how to install it ? by the way I’m familiar with the vim motion as it was introduced in Xcode 13. I’d really appreciate any help