Added Xcode project
Fixup for analyzer NULL warning in array handling code.