r/iOSProgramming • u/Wise_Second_3220 • May 01 '24
Question Using VScode for iOS programming - initial set up?
Hi all,
I've asked this question in another group but I think I may have worded it incorrectly, I have worked on iOS development projects before (front end) but never had to set up Xcode and vscode myself from scratch. I remember I was using Vscode to code and Xcode simulator to view the app.
I really am lost how to set this all up, I have looked online multiple times, I was using metro too (which I am unsure how to set up too..) and had to install pods in the vscode terminal, but would need to navigate to cd iOS before doing so.
Do I need to install specific packages on vscode for this too? Where do I get all the correct files from such ? A git repo? My apologies for being all over the place with this.
Any help would be truly, greatly appreciated.
2
u/ShenmeNamaeSollich May 01 '24 edited May 01 '24
Sounds like you were using a cross-platform framework like Flutter or ReactNative (prob this if Metro) before.
Yes with those you can write the app in VS Code & the framework takes care of the details for iOS & Android builds. You need XCode & command line tools installed to use the iOS Simulators & to have the framework kick off the build processes.
If you only want to create native iOS apps written in Swift and/or Objective-C, then yes all you need is Xcode.
If you want to use TS/JS to write a cross-platform app for both iOS and Android, you’ll probably want to look into React Native.
1
u/Wise_Second_3220 May 02 '24
Thank you so much for this, I feel like maybe you understood what I mean, I've searched hi and low and all I have managed to do is be able to install brew and completed : npm install -g react-native-cli.
Where and how do I get this metro up and running? I would be so grateful for your help!
4
u/VenusFlytrapDeMilo May 01 '24
Unfortunately VSCode support is pretty rough and there's a lot regarding iOS development you can't do with it.
Xcode is trash but it's what you'll need to use.
4
u/ThrockRuddygore May 01 '24
This another Apple walled garden. You will use Xcode and you will like it.
2
2
u/hyzyla May 01 '24
Look for my project VsCode extend for building iOS applications in VSCode. It lack a lot of features, but can be good baseline for you
https://marketplace.visualstudio.com/items?itemName=sweetpad.sweetpad
2
u/Zamorite Aug 12 '24
This looks really good, u/hyzyla.
I am really impressed with how much you've covered so far, and I'm looking forward to seeing this grow into a reliable alternative to xcode.
Good job, man. 👍🏽
Cheers 🥂
16
u/EquivalentTrouble253 May 01 '24
Forget VScode. You only need Xcode to do iOS development.
What you’re describing sounds like an awful development experience.