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

13

u/EighthDayOfficial Jul 05 '21

I have had none of these issues except being slow in large code files, but that is my fault for being bad at programming.

It definitely needs some work but people both expect it to be free and high quality.

I would prefer to spend $300-400 at least on a nice professional setup, like Metrowerks CodeWarrior used to be. I'd prefer to have an independent company whose profits/losses depend on making it better. If you are a developer, you should be willing to spend for some great tools that end up saving you time.

But the "everything is free" has caused a race to the bottom in a lot of things. If its not generating revenue, companies will tend to divert resources away and the people who work on the project can't really move up because the project they work on generates no revenue. Can't be like, "I doubled revenue" if there is no revenue. So the talented managers and programmers will self select out of that team into revenue generating projects.

I bet the programmers that work on Xcode have much higher turnover than other areas of the company, and the management is as well. The result is lack of long run focus.

I code in Objective C/C and my UI is entirely in code (for future portability). So I don't deal with storyboards or any of that.

5

u/a1b2c3d4g Jul 05 '21

It does suck for people who pay to be part of the developer program. Not exactly free in that case. Also, releasing new emojis gets them (Apple) money, improving developer productivity does not, so we always see updates for emojis.

-6

u/EighthDayOfficial Jul 05 '21

The dev program is a separate line item in the company budget and in all likelihood, the managers at Xcode can't claim that additional revenue. $99 today is nothing compared to what dev kits used to cost. You used to get a lot more support and documentation.

There used to be these things called bookshelves that programmers had with volumes of documentation. Apple's documentation now is a joke.

That is my point, my belief is the way companies work the managers that are up and comers (and programmers) want to work on things that bring in money so they can demand more bonuses.

In Xcode dev, I'm betting they get bonuses by saving money and not revenue.

3

u/offeringathought Jul 05 '21

You make a good point about incentives not lining up to get a solid, performant Xcode. My impression is that Apple specifically doesn't breakdown revenue and associate it with small teams. I don't have the source but I read that when Steve Jobs came back Apple was divided into divisions that would constantly argue about who was responsible for various expenses. It was so dysfunctional that while the whole company was loosing lots of money each division was reported as profitable. Jobs reorganized Apple around functional areas and did away with profit/lose and division levels. My loose understanding is that it is still that way today. Senior executives are responsible to functional areas (hardware, software, services, whatever) the profit and loses are seen primarily as one unified company. (I could be wrong about some of all of this.)