Stop using a Makefile for executing recurring tasks

The good old Makefile

TL;DR

A Makefile has important limitations when using it to execute recurring shell tasks.

A better alternative is to use a shell script with functions, which I called taskfile. Try it out by running the following command in your terminal, which will create a basic taskfile in the working directory:

/bin/bash…


Yes, as you read it. For each app you open or executable that you run (even a one line script!) on MacOS Catalina, Apple is sending a network request to their servers. And until that network request returns, the app/executable will be frozen.

Credits for the discovery go to Allan…


You can read this same post, with syntax highlighting at SForSwift

Today I want to revisit struct composition in Swift. I will dive right into it, but if you need some extra context you can have a look at this article by John Sundell.

Let’s say that in our company…


There has been quiet some discussion lately in the Swift community about the benefits of using static instead of dynamic frameworks (see 1, 2, 3). I was specially interested in this post, that explains how switching from dynamic to static frameworks can cut your app’s launch time in half.

I…


EDIT FOR MACOS BIG SUR:

Apparently the -a options of the tmutil command does not work in BigSur. Luckily somebody found a solution:

for f in <youBackupComputer>*; do if [[ -d "$f" ]]; then sudo tmutil associatedisk <theNewDisk>"$f"<theOldDisk>; fi; done

In my case, the command looked like this:

for f…


Today I was setting up a new mac. After playing with it a bit, I opened the terminal, and immediately noticed that the hostname (which appears at the left, on every line) was wrong:

I wanted to change it, and here is how I finally managed.

That host name appearing…


When dequeuing and customizing a basic UITableViewCell using the most recent API (introduced back in iOS 6), you would do something like this:

When the cell becomes more complex, it’s necessary to create a custom subclass of UITableViewCell. …


Y llegará un punto en el que no existirá más un sitio al que volver. Por supuesto, tu casa seguirá ahí, junto con tu familia, tu habitación, tus cosas… Pero ya no será más el sitio al que antes llamabas casa. Ese sentimiento de pertenencia, de hogar, se habrá desvanecido…


During the last week I have been working in setting up a Swift project, to make it work in a build server.

One of the things you realize when performing this task is the pain that codesign represents: now not only you have to setup your own machine (a task…


In this post I am going to show you how to setup Xcode, so you can use it in your C/C++ projects. It will allow you to use all the nice features offered by the IDE. At the moment of writing I am using Xcode 9.2 and MacOS High Sierra…

Andrés Cecilia Luque

iOS developer @Revolut

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store