Posts

Showing posts from December, 2016

Some Practical Uses for Xcode Build Schemes and Build Configurations (Swift)

Image
Have you ever wanted to use the exact same codebase for both a free version and a paid version of your iOS app? Does your client have both a development and a production server that the same code needs to talk to? Do you need to create an internal ad-hoc build of your app for testers on your team? If you have ever answered “yes” to any of these questions, it sounds like you need a custom build scheme. I wish I had discovered the awesomeness that is the Xcode build scheme sooner. As a developer, they give you the ability to deliver different versions of the same code with small tweaks for different environments. Once you learn how to use them, you will love them too. With custom build schemes, you can Write code that only runs on the free version of your app, allowing you to show ads or offer in-app purchases without duplicating targets or project files. Flick a switch to deliver a build that talks to the production server after testing your app in a development environme...