Cleaned up sdef file. Made apple scrip command publishing synchronous to ensure that the xcodeproject gets the latest ccbproj before running.