40
u/dev4dev Aug 23 '20
And you have Realm in pods 😪
9
Aug 23 '20
I don't get these memes :/ anyone minds to explain what these shortcuts do? :)
3
u/dev4dev Aug 23 '20
you can find explanations in comments below
9
Aug 23 '20
Oh wow! Turns out I use these every day, I just don't know what I press anymore because of muscle memory lmaooo
9
u/dev4dev Aug 23 '20
haha, yeah...it works 99.9% of the time, and then you put your aftershave gel on your toothbrush and your day is ruined 🤷🏻♂️
5
u/pp_amorim Aug 23 '20
After many years I decided to use submodules and compile the project from the scratch. Better thing I ever did, do you guys want my build script and a tutorial?
1
u/jNSKkK Aug 24 '20
Switch to Carthage. Thank me later.
2
u/tubescreamer568 Aug 24 '20
SPM: Am I a joke to you?
1
u/jNSKkK Aug 24 '20
SPM was a joke when it didn’t yet support asset bundles, but now it does! However, we are still waiting for all of our dependencies to adopt SPM support.
2
u/dev4dev Aug 24 '20
In latest Xcode debugging doesn't work because of that. Just shows some errors. Rebuilding helps for some time, then again. 🤷♂️
1
u/jNSKkK Aug 24 '20
Try the NSOperations fork on GitHub. MUCH better than the standard version of Carthage.
33
u/Jay18001 Aug 23 '20
We have some analytics at my company and it turns out I spend 8 hours on average per week just building the app
16
u/p4r4d0x Aug 23 '20
You can save a bunch of time building by holding ctrl before pressing play, to reuse a previously built artefact. Handy if you’re debugging, as it avoids redundant rebuilds when you didn’t change any code
3
Aug 24 '20
Shouldn’t Xcode check that automatically?
4
u/p4r4d0x Aug 24 '20
You would think so, but it doesn’t, no.
3
u/corrmage Aug 24 '20
It does, but checking this takes some time too. With ctrl modifier it just blindly uses whatever it has without any checks whatsoever.
1
Aug 24 '20
Modularization is the way to go. You only have to rebuild frameworks that've changed.
3
u/Jay18001 Aug 24 '20
Our app is fully modularized, it doesn’t really help when the app reaches a certain size.
1
u/faja10 Aug 24 '20
Same. It helps when u debug something on the end, but trying to add/edit something to core is slower that without modules
10
u/ABeeinSpace Aug 23 '20
What do the keyboard shortcuts do? I’ve been trying to get into iOS development but my programming background isn’t quite strong enough yet for Swift
12
u/baker2795 Aug 23 '20
I know CMD > shift K is clean, B is build, R is run. L is code snippets. some good ones here
3
u/ABeeinSpace Aug 23 '20
Makes sense lol. I need to learn more so I can tackle iOS stuff I barely know JS at the moment lol
2
Aug 23 '20
Command shift K cleans the build folder, command shift L brings up the menu to add objects
2
u/ABeeinSpace Aug 23 '20
Got it. I was wondering about a Library keyboard shortcut I was never able to find it before. I’ll try to remember that!
4
Aug 23 '20
This seems to be a decent resource for finding keyboard shortcuts. They make things feel so much faster
4
1
u/P5YCH0D3 Aug 24 '20
Try using this if you frequently forget commands https://mediaatelier.com/CheatSheet/
2
1
u/mflboys Aug 24 '20
Have you checked out Stanford CS193p? I also thought I didn’t have the chops for Swift development, but this course does a great job of explaining things in a clear way.
1
u/ABeeinSpace Aug 24 '20
I have not! I will definitely check it out!
1
u/mflboys Aug 24 '20
Yeah it’s great for beginners, highly recommended. If you’re wanting to eventually work toward a professional level, then I’d suggest following the readings/assignments, but for me as a hobbyist, just following the video lectures felt sufficient.
And don’t skip the first lecture. It begins with syllabus-type info, but quickly proceeds into the first programming project.
1
1
u/oureux Objective-C / Swift Aug 24 '20
All the time!
Well there goes 20min. Better go make another coffee.
22
u/xaphod2 Aug 23 '20
Spot on. Can confirm that this really hurts if your ancient macbook isn’t near the power supply and it is a 5+ minute build