munki/munki — pull request #398 by timsutton (2014-10-07 14:51:27+00:00)
Title: Xcode6 compatibility: move Embed version info phase

I can't seem to Google well enough for exactly what changed about the build process as of Xcode 6, besides possibly a change in their app templates, but with Xcode 6, the template Info plist doesn't seem to exist yet when the 'Embed version info' phase runs, so PlistBuddy commands fail (and even if they were fixed, the template plist doesn't exist yet anyway).

With this tweak of moving this phase to the end, I can still successfully build MSC and MunkiStatus in Xcode 5.1.1 on 10.8 and 10.9, and build installer packages. They seem to work and have the same version info.

Here's a one-liner to copy the 10.8 SDK from a mounted Xcode 5 DMG (at `/Volumes/Xcode`) to an installed Xcode 6.0.1 in /Applications:

`sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/`