r/iOSProgramming • u/yuyuho • Apr 09 '24
Question Recommended Macbook Pro for IOS development with xcode
Title. I know this gets asked a lot, but the last post I could find was a couple of years ago.
I was thinking a dream (more futureproof laptop) or a budget one.
Would a m1 8g ram and 512ssd be enough? Also 14in looks nice to me for the portability.
For something more expensive, I could go with m2 or even m3 chip but, I'm not sure what is more important to run xcode smoothly. If it's ram then I would rather get a larger ram and cheaper cpu.
14
u/everydave42 Apr 09 '24
This is gonna be grumpy AF but I'm pre-coffee and kinda over it....
but the last post I could find was a couple of years ago.
How? No, seriously how was that the last post you could find? What did you search for? Searching for "macbook" in this sub, sort to new brings up 3 posts on the topic in the last couple of *days* and 10 over the last month alone.
I don't get it, why is this question a near daily occurrence? Why is searching so damn hard...especially for anyone that supposedly wants to program which is all about learning how to use tools that are substantially more complex than search?
-9
u/yuyuho Apr 09 '24
i searched laptop and xcode
5
u/everydave42 Apr 09 '24
Even searching with just "laptop" brings up hits within the last month, but maybe reddit search is just *that* bad and variable, and it wouldn't hurt for this to be a sticky on the sub, and I'm sorry for my grump.
I'm going to go have extra coffee now. But u/EquivalentTrouble253 nailed the bear minimums. If you can afford to upgrade anything, I would do the SSD size first as that's what you'll run out soonest, then RAM. Unless you're doing heavy graphics/neural engine work then look into CPU updates.
Do not, under any circumstances, get an intel based Mac, no matter how cheap. Their time is limited and growing shorter by the day and you'll need to buy a new one in a few years at most if you do.
1
u/d4n0wnz Apr 09 '24
Search macbook and you will see the repeated posts from the past year asking the same questions…
1
6
u/Vimus_ Apr 09 '24
M2/M3 Air. Just get 16 gb of ram. You can work with 8 but you will have always full memory.
-3
u/yuyuho Apr 09 '24
wouldn't an Air overheat when dealing with xcode?
1
u/Gloriathewitch Apr 09 '24
airs don’t overheat because they thermal throttle at 110 before damage can be done, i’ve never exceeded 100c in xcode
1
Apr 09 '24
Most people fail to understand that most dev work is text editing, which is an extremely light task. The only time your machine would be actually working is when you run the app itself, which relatively speaking would not be very often and not for long enough that it would overheat to any degree of concern.
If you do get the M1, rather get 16GB of RAM and a 256GB SSD and then use an external SSD if you need more storage (you can always expand with an external SSD, but you can't upgrade the memory after the fact).
If you're thinking of getting the 14inch MBP (I'm assuming the M3 variant), unless you can spend extra to get the M3 Pro spec, don't bother imo, the fans will barely offer any performance gains compared to the M3 Air.
An M2/M3 Air with 16GB of RAM will be the most future-proof of course (barring an M3 Pro 14inch). The M2/M3 with 8GB will be better for actually running the app via Xcode vs M1 with 16GB, but you may run into memory constraints with only 8GB, so if you can splurge for the extra memory I would encourage it.
So (from best to worst):
M3 Pro 14 inch
M3 Air with 16GB memory
M2 Air with 16GB memory
M2/M3 Air with 8GB memory / M1 Air with 16GB of memory
M1 Air with 8GB of memory
2
Apr 09 '24
[removed] — view removed comment
2
u/ashoddd Apr 09 '24
I have an Intel MBP and find the slowest parts of Xcode to be live previews and when Xcode takes forever to build then errors out with “The compiler is unable to type-check this expression in reasonable time” usually due to a simple typo in SwiftUI code. Otherwise running the full simulator isn’t that bad.
Does anyone have any insight as to which M model helps improve these the most? YouTube benchmarks just compare build times in large projects but that’s meaningless in day to day dev.
2
u/Gloriathewitch Apr 09 '24
i’ve had m1 pro, m2 and m2 pro and this is actually just an xcode problem to be frank
2
u/ashoddd Apr 09 '24
Thanks for the info! Are any of the M models a big step up for rapid tweaking UI with live previews though? Or is that always just going to be slow!?
2
u/Gloriathewitch Apr 09 '24
most of the time it is pretty quick for me, I find its when i write really convoluted code (or endless loops by accident) that i get type-check compiler errors, though when sonoma came out simulator broke entirely,
I've never owned an intel model, but based on sheer benchmarks and what ive heard from intel owners, even the m1 pro 13" was about 50 to 70% faster than the last intel i9 model they released,
Its generally better practise, in my personal opinion to build and test on device, as sim tends to be very laggy, its only really useful for previewing UI changes and basic stuff.
2
u/ashoddd Apr 09 '24
Yep 99% of the time it’s usually that I’ve screwed something up where it does the type-check errors, and now I’ve learnt that if it takes longer than 5 seconds it’s usually something I’ve done and I just check my code instead of waiting the 20 seconds for it to just fail. But the 1% of times that it wasn’t me is annoying! Yep I agree, and I find the Intel to be pretty good for on-device and even the simulator, just the previews are annoyingly slow. Either way, it might be finally time to upgrade! 😅
2
Apr 09 '24
[removed] — view removed comment
1
u/ashoddd Apr 10 '24
Yes great points - I could definitely do better keeping view structs small! Thanks for the tips!
2
1
u/clarkcox3 Objective-C / Swift Apr 10 '24
Your instincts are correct, but I’d say get at least 16GB of RAM.
20
u/EquivalentTrouble253 Apr 09 '24
M1, 16GB and 512 SSD and you’ll be good for along while yet.