Skip to content

Instantly share code, notes, and snippets.

@incanus
Last active December 26, 2015 11:49
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save incanus/7146507 to your computer and use it in GitHub Desktop.
Save incanus/7146507 to your computer and use it in GitHub Desktop.

Hey folks,

Here are my slides & extra info from my talk last night on Xcode from the command line.

Slides (PDF .zip):

The notification functions that I use in Bash:

For these you will need either or both of:

Add these lines to your ~/.bash_profile to make use of Xcode's bundled Git goodies:

My Terminal prompt showing, among other things, current Git branch:

Hub, the handy utility if you use GitHub:

The lipo example that I used when talking about the framework that I build is here:

And in response to Julio's question about incrementing build number, we use this in TileMill (direct .xcodeproj link):

In an easier-to-read format:

This goes into a Run Shell Script build phase in your Xcode target and modifies the built product bundle directly.

Lastly, Ben Ford brought up the topic of automating provisioning profile updating, meaning bringing the actual profile(s) into your build process on a regular basis in response to frequent device adds. We didn't have any great answers other than to start looking into nomad's tools, so comments here are welcome!

Fire away with any questions!

JM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment