For OP, if you run Xcode and rely solely on the Simulator to test your code, then skip the MacBook.
At a minimum, you want the MacBook Air, but ideally, you want any random Pro here.
Yes, people (including me) are using the MacBook as development machines. Sometimes the only thing, but that's because we deploy and test on other things (I run my apps on actual iPhone and Android phones for one). Simulator runs very very slow on MacBook. It's a combination of a slow-ish GPU coupled with the constant need to scale the display that's doing that, I think. Until Intel steps up their game and makes the GPU in the MacBook significantly faster, this won't change at all.
Running an external 4K display is fine but you can tell very quickly that these machines aren't made for that. The 13" and 15" Pro from any generation totally outclass it.