The magic of generating an Xcode project

Click for: original source

Planet Earth vs. Jupiter. There is the same order of magnitude between the ratio of these two planets and the amount of code that defined the SoundCloud iOS project before – Jupiter – and after – Earth – generating it using Tuist. By Andrea Cipriani.

In this blog post, author discusses the problems of maintaining a complex iOS project, how they managed to simplify the process by writing less and more consistent code, and how they ended up with lower build times as an unexpected result.

Generating the project was not an easy journey, as the process of writing the manifest files can be tedious and error-prone. Debugging problems at the project level is not always easy, nor is it easy to validate if the generated project is semantically equal to the previously existing one, even with the support of a great open source tool like xcdiff.

The article deals with:

  • What’s the problem with Xcode projects?
  • Project generation
  • Serendipity

Xcode is the official tool for developing apps on Apple platforms. Every time you make a change to an Xcode project, such as adding a new source file or changing a setting, the IDE generates some code into a file called project.pbxproj. The first thing you may notice is that the generated code is not easy to read or change, as it uses unique random identifiers to refer to every entry of the project. Read whole article to learn more. Excellent info for anybody developing for iOS!

[Read More]

Tags ios machine-learning app-development programming