opsb
(Oliver Searle-Barnes)
1
It's been 10 years since I used an IDE to code in, favouring editors like Textmate, Sublime and VSCode. I see that there's GitHub - apple/sourcekit-lsp: Language Server Protocol implementation for Swift and C-based languages which makes it possible to write code in VSCode (at least that's the intention - I haven't tried it to see how far along it is yet). Assuming that I could use that is there any way to run ios projects without using xcode? Is it possible to build the project and launch it in a simulator or on a device from the command line?
sjavora
(Šimon Javora)
2
It depends on what you mean by “without Xcode”. If you mean “without having to launch Xcode.app” then yes - you can use the xcodebuild command. If on the other hand you mean “without having Xcode installed on the machine” then I believe the answer is no.
2 Likes
opsb
(Oliver Searle-Barnes)
3
ah, I wasn't aware of xcodebuild! No I don't any desire to rid my machine of xcode, just looking for a faster way to work so xcodebuild seems like exactly what I'm looking for.
edit: note for anyone else looking for similar, there's a man page for xcodebuild which is pretty comprehensive.
1 Like
zienag
(Alfred Zien)
4
For launching from command line you can consider simctl. There is no man page for it afaik, but xcrun simctl help is a good place to start.
1 Like
opsb
(Oliver Searle-Barnes)
5
simctl looks like what I need, and I found this great article introductory article simctl - NSHipster
1 Like
opsb
(Oliver Searle-Barnes)
6
Took a little fiddling but I've got the app building and deploying to a simulator from the command line
For reference I found this article which was also very helpful simctl: Control iOS Simulators from Command Line | by Shashikant Jagtap | XCBlog | Medium .
2 Likes
markturnip
(Mark Turner)
7
1 Like