Fixed issues described in https://github.com/adamwaite/XcodeProject/issues/2. Thanks @ehlersd.