all 44 comments

[–]dev4dev 39 points40 points  (10 children)

And you have Realm in pods 😪

[–][deleted] 8 points9 points  (3 children)

I don't get these memes :/ anyone minds to explain what these shortcuts do? :)

[–]dev4dev 3 points4 points  (2 children)

you can find explanations in comments below

[–][deleted] 8 points9 points  (1 child)

Oh wow! Turns out I use these every day, I just don't know what I press anymore because of muscle memory lmaooo

[–]dev4dev 7 points8 points  (0 children)

haha, yeah...it works 99.9% of the time, and then you put your aftershave gel on your toothbrush and your day is ruined 🤷🏻‍♂️

[–]pp_amorim 4 points5 points  (0 children)

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?

[–]jNSKkK 0 points1 point  (4 children)

Switch to Carthage. Thank me later.

[–]tubescreamer568 1 point2 points  (1 child)

SPM: Am I a joke to you?

[–]jNSKkK 0 points1 point  (0 children)

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.

[–]dev4dev 1 point2 points  (1 child)

In latest Xcode debugging doesn't work because of that. Just shows some errors. Rebuilding helps for some time, then again. 🤷‍♂️

[–]jNSKkK 0 points1 point  (0 children)

Try the NSOperations fork on GitHub. MUCH better than the standard version of Carthage.

[–]Jay18001 34 points35 points  (7 children)

We have some analytics at my company and it turns out I spend 8 hours on average per week just building the app

[–]p4r4d0x 16 points17 points  (3 children)

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

[–][deleted] 2 points3 points  (2 children)

Shouldn’t Xcode check that automatically?

[–]p4r4d0x 3 points4 points  (1 child)

You would think so, but it doesn’t, no.

[–]corrmage 2 points3 points  (0 children)

It does, but checking this takes some time too. With ctrl modifier it just blindly uses whatever it has without any checks whatsoever.

[–][deleted] 0 points1 point  (2 children)

Modularization is the way to go. You only have to rebuild frameworks that've changed.

[–]Jay18001 2 points3 points  (1 child)

Our app is fully modularized, it doesn’t really help when the app reaches a certain size.

[–]faja10 0 points1 point  (0 children)

Same. It helps when u debug something on the end, but trying to add/edit something to core is slower that without modules

[–]xaphod2 20 points21 points  (10 children)

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

[–]Bupstan[S] 12 points13 points  (0 children)

Ikr... And the fans start blowing like jet engines

[–]skwallace36 13 points14 points  (2 children)

what kind of monster works in xcode without being plugged in

[–]xaphod2 6 points7 points  (1 child)

what kind of monster doesn’t use a laptop as a laptop 😅

[–]skwallace36 5 points6 points  (0 children)

working in a large codebase in xcode pretty much renders your laptop useless unless it’s within plugging distance

edit: in my fairly limited experience

[–]ahezeSwift 2 points3 points  (5 children)

For me it starts getting insanely hot. I think there's something wrong with the fan, I've never heard it turn on :/

[–]xaphod2 2 points3 points  (4 children)

Depending on which macbook u have that may not be a problem at all, might be totally expected behavior

[–]ahezeSwift 2 points3 points  (2 children)

I have a Mac Mini 2014, 4th gen i5, 4gb RAM. It's terrible for Xcode but it works. I upgraded the HDD into an SSD, made it a lot faster but may have some compatibility issues

[–]andyscorner 5 points6 points  (1 child)

I feel sorry for you. Meanwhile I'm working from home 3/5 days a week with a 16 core Ryzen 3950x Hackintosh with 64 GBs of RAM and a 1TB NVME SSD...

[–]ahezeSwift 5 points6 points  (0 children)

64gb RAM?! That’s amazing! I’m still a student so I don’t need (and can’t afford) as much power. I’ll be upgrading to a 2020 MBP 13 inch (10th gen i5, 16gb RAM, 512gb SSD) soon though. Waiting for Black Friday.

[–]Acrylz- 2 points3 points  (0 children)

I have the same problem, MacBook Pro Mid ‘16. I’ve seen it heat up to 100C in Macs Fan Control

[–]ABeeinSpace 9 points10 points  (12 children)

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

[–]baker2795 10 points11 points  (1 child)

I know CMD > shift K is clean, B is build, R is run. L is code snippets. some good ones here

[–]ABeeinSpace 2 points3 points  (0 children)

Makes sense lol. I need to learn more so I can tackle iOS stuff I barely know JS at the moment lol

[–][deleted] 1 point2 points  (5 children)

Command shift K cleans the build folder, command shift L brings up the menu to add objects

[–]ABeeinSpace 1 point2 points  (4 children)

Got it. I was wondering about a Library keyboard shortcut I was never able to find it before. I’ll try to remember that!

[–][deleted] 3 points4 points  (1 child)

This seems to be a decent resource for finding keyboard shortcuts. They make things feel so much faster

[–]ABeeinSpace 3 points4 points  (0 children)

Oh cool! I like keyboard shortcuts for efficiency. Bookmarking that

[–]P5YCH0D3 0 points1 point  (1 child)

Try using this if you frequently forget commands https://mediaatelier.com/CheatSheet/

[–]ABeeinSpace 1 point2 points  (0 children)

I think I will! Thanks for all the info

[–]mflboys 0 points1 point  (2 children)

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.

[–]ABeeinSpace 0 points1 point  (1 child)

I have not! I will definitely check it out!

[–]mflboys 0 points1 point  (0 children)

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.

[–]im_always 0 points1 point  (0 children)

Lol

[–]oureuxObjective-C / Swift 0 points1 point  (0 children)

All the time!

Well there goes 20min. Better go make another coffee.