Fixing #478 and bringing back changes in from #477

Fixing #478 and bringing back changes in from #477. Hope this does fix Travis too by using HTTPS clone. According to Stackoverflow it should work!

A new build phase has been added in Xcode to work with xcodebuild in the command line