---
title: "Schemes bites - Little Bites of Cocoa"
description: "Little Bites of Cocoa about Schemes: short tips and techniques for iOS and Mac development, each a brief explanation of one concept, technique or tool."
url: "https://littlebitesofcocoa.com/topics/22-schemes"
author: "Jake Marsh"
---
# Bites about: [Schemes](https://littlebitesofcocoa.com/topics/22-schemes)

Topics

- [Tools](https://littlebitesofcocoa.com/topics/9-tools)
- [Schemes](https://littlebitesofcocoa.com/topics/22-schemes)

## [#65: Xcode Scheme Tips 🔨](https://littlebitesofcocoa.com/65-xcode-scheme-tips)

 Friday August 21st, 2015

Topics

- [Tools](https://littlebitesofcocoa.com/topics/9-tools)
- [Schemes](https://littlebitesofcocoa.com/topics/22-schemes)

There's a *ton* of power tucked away inside of [Xcode Schemes](https://developer.apple.com/library/ios/featuredarticles/XcodeConcepts/Concept-Schemes.html). Let's take a look at just a *few* of the helpful things we can do by clicking on our current **Scheme** and selecting **Edit Scheme...**

![Image 1 of 5 from bite #65: Xcode Scheme Tips](https://media.littlebitesofcocoa.com/bite-assets/065-xcode-scheme-tips-edit-scheme.png)

## Default Simulated Locations

![Image 2 of 5 from bite #65: Xcode Scheme Tips](https://media.littlebitesofcocoa.com/bite-assets/065-xcode-scheme-tips-default-location.png)

We can configure a default **simulated location** when our app is run by selecting **Run** in the left column and then **Options**.

## Test Multiple States

Don't be afraid to go **Scheme**-crazy. Why not make one that runs with an **application data bundle** of a *logged in* user, and one of a *logged out* user? Now we can easily switch between developing in the two states.

## Walking Dead Objects

![Image 3 of 5 from bite #65: Xcode Scheme Tips](https://media.littlebitesofcocoa.com/bite-assets/065-xcode-scheme-tips-zombie-objects.png)

Selecting **Run** in the left column, then **Diagnostics** to enable **Zombie Objects**. This will help you track down those pesky **EXC_BAD_ACCESS** crashes by holding on to [deallocated objects](http://deallocatedobjects.com) *(ding)* and logging a message when something tries to interact with them.

## Add Carthage Support

![Image 4 of 5 from bite #65: Xcode Scheme Tips](https://media.littlebitesofcocoa.com/bite-assets/065-xcode-scheme-tips-shared.png)

[Carthage](https://github.com/Carthage/Carthage) (covered in [Bite #11](http://littlebitesofcocoa.tumblr.com/post/120450570974/11-adding-external-libraries-with-carthage)) support is easy to add. We just need to make sure we *share* the **Scheme** that builds our framework.

## Easier Profiling

![Image 5 of 5 from bite #65: Xcode Scheme Tips](https://media.littlebitesofcocoa.com/bite-assets/065-xcode-scheme-tips-instruments.png)

We can **Duplicate** our original **Scheme** again and choose an **Instrument** under **Profile** > **Instrument**. Now we can easily launch straight into a particular kind of **Profiling** with a single click.

## Test Background Fetch

We can easily test our app when launched from a **background fetch** by editing our original **Scheme** then clicking **Duplicate Scheme**. On this new **Scheme**, we'll enable *Launch due to a Background Fetch* under **Run** > **Options**.

 

 
