r/iOSProgramming • • Jul 05 '21

Discussion Tired of Xcode.

I don’t know about you, but I’m starting to get sick of it.

First, it’s terribly slow.

  • Opening a storyboard with a single ViewController can take over a minute, and any file I try to open will be a blank screen until it’s done loading the storyboard.

  • But then, just opening a project can take quite a bit of time.

  • Yes, SwiftUI is supposed to be better. But, personally, SwiftUI previews have only ever worked for tiny brand new projects. Then they just start failing.

Second, it’s unreliable.

  • One day it’ll open a project. The next, it’ll (take a long time and) crash trying. But opening said project via right-clicking on Xcode’s Dock icon will work. Go figure.

  • Then, suddenly, at some point while programming, all syntax highlighting will be gone, and auto completion will just stop working, plain and simple.

  • Edit 2: Also, @IBDesignable. It’s a neat idea. If only it worked reliably instead of randomly failing to render.

Third, I find it’s build time errors can be ridiculous.

  • The worst of course, is when using things like RxSwift. But I find the Combine ones pretty hilarious too, sometimes.

Fourth, it’s "refactoring" capabilities are meh.

  • When it does work, and doesn’t just take ages playing it’s accordion animation only to fail cryptically, the renaming refactoring feature will often behave like a simple search and replace, renaming properties from other classes and structures.

Last, weird bugs with more or less helpful logs:

  • Why do we have to wipe the DerivedData so often? It was almost nice and fine until we started adding SPM packages into the mix and they too were stored there. Now, after wiping those, we also have to redownload our dependencies. Yay

  • Did you know there were other folders you could clean up when stuff stops working? There’s xcuserdata in the xcworkspace, also ~/Library/Caches/com.apple.dt.Xcode.

  • And sometimes you have to reboot your Mac because somehow XCode suddenly lost the rights to write into one of it’s build folders. Don’t ask me how; I have no idea

  • Crashes / hanging forever because a device is plugged in / connected "over the network" ? Seems it’s been fixed since. But that was pretty annoying.

Anyway, sorry for the rant. It just gets tiring over time, and sharing with other people who might know that pain makes it feel better.

If anyone has solutions, you are more than welcome.

And if I’ve forgotten anything this godforsaken tool does wrong, you absolutely are welcome to chime in.

Edit: fixed format

170 Upvotes

96 comments sorted by

View all comments

2

u/SirBill01 Jul 05 '21

Over the many years I've been an app developer I've not run into all of the problems you list (like losing rights to build folder), but I have had others of them happen as well...

I think though that Storyboard performance might actually be a lot better if you get an M1 Mac. I don't have one myself yet but that's something to consider. When the new Pro laptops come out I plan to get one, just because I think all around Xcode performance may be improved...

1

u/[deleted] Jul 05 '21

Definitely considered it, and patiently waiting for the 16" ARM.

The build folder rights was the following `The file couldn’t be saved. Command PhaseScriptExecution failed with a nonzero exit codeˋ

Lots of possible causes, if you look on Google, but in my case it had nothing to do with Carthage. It just… had lost the right to write in the build folder. And restarting solves it, every time.

I’m seriously considered setting up a VM or a cloud dev environment for each and every single one of my projects, so I don’t have to reset my Mac or deal with some of the stuff some clients’ setup processes required.

But VMs take up space, and I haven’t found any (worthwhile) cloud dev environment for Xcode.

2

u/SirBill01 Jul 05 '21

That permission error is very odd, like I said I've not ever run into that one in Xcode... although come to think of it I HAVE had Finder just recently refuse to let me drag-copy or move any file into any other folder. So it could be some similar underlying OS X bug. I think rebooting fixed that one as well.