Dream Engine Blog: “A simple design pattern for making reusable Podfiles.”
This is really cool. I have to start thinking about doing this!
"In an effort to improve my code quality I have started using some helpful Xcode Build Phases.
Build phases are descriptions of tasks that need to be performed by Xcode during a build. Build Phases can be added from the Editor menu (Editor -> Add Build Phase)."
(Via Matthew Morey)
Working on a Mac / iOS projects, I have been trying to come up with an easy way to bump versions when it goes out the door for testing or production. Mostly I have been working it out manually, yet that is now fun after the dozenth time. I started looking around for something that would fit my workflow. I found a couple of posts that help me out.
After refining this for a while I have changed my workflow now to this:
Download the code from the GitHub project here.
Updated 6/20/2013 with new workflow.
"This list isn't about stylistic things like which line new braces go on (new ones, duh). This list is about potential problems with the code you're writing on an objective scale. "
This is a great list. Enjoy!
" The latest versions of the Clang compiler extend the Objective-C language with related return types, which allow a limited form of covariance to be expressed. Methods with certain names (
init, etc.) are inferred to return an object of the instance type for the receiver; other methods can participate in this covariance by using the
instancetype keyword for the return type annotation. "
This is what I really want in the next version of Objective C.
I have long been a fan of Test Driven Development (TDD). I have used all kinds of frameworks for doing my tests and for all of them have adopted the Act, Arrange, Assert pattern. I have looked into doing Behaviour-Driven Development and like the idea, just never found a framework that I was comfortable with and could use back and forth with unit testing.
I have been using OCUnit that ships with Xcode to do my testing. I decided that I wanted to branch out. I had heard good things about Kiwi for doing BDD with iOS. I decided that I should try it out. I normally I stick to the web and spelunking, yet this time I decided to buy a book on the subject: Test Driving iOS Development with Kiwi. This book is only available from the iBooks store.
I have to say the book was worth every penny. I really thought it was a simple and easy introduction. It doesn't try and cover every nook of the framework, but it gives you enough information to get you started and how you can easily use it. It also takes advantage of the fact it works on the iPad: you get media built right into the book. Rather than just text walk throughs, you get video / slides of how to do things visually. I really love this new way of doing books.
If you have never done or looking to do testing for you application (shame on you if you don't), you should really look into this book and Kiwi. I give it 5 stars!
Ben Scheirman has started NSScreencast, a great set of screen casts on Objective-C and iOS / Mac development. I really wish this was around when I was learning this! I have watched both videos and they are great. I really hope he continues this and it takes off.
With the iOS Windows Azure Toolkit, you can use the ready made Windows Azure Packages that use ACS or Membership to manage users to Windows Azure Storage. These packages require you to have a SSL certificate. More than likely you are running on a Mac.
This is pretty straight forward. You will need to create a certificate and then create a PKCS12 (.pfx) file for it. You can generate the certificate from terminal using openssl with the following steps: