Friday, April 26, 2013

Guide to Compiling Sonora for Mac

So i recently downloaded Sonora for Mac and realised that there was no last.fm compatibility built in due to the source code being public now. I was trying to compile Sonora for Mac for the first time and ran into a few snitches, I couldn't find a proper guide for an idiot to compile Sonora so here's my quick one.

Download mogenerator from http://github.com/downloads/rentzsch/mogenerator/mogenerator-1.27.dmg

Install mogenerator

Make sure you have XCode and it's Command Line Tools installed before trying anything below.

Open up Terminal and type

sudo gem install cocoapods (This part may take awhile depending on your internet connection)
pod repo add Sonora-podspecs git://github.com/zanechua/Podspecs.git master
git clone git://github.com/sonoramac/Sonora.git
cd Sonora
nano Podfile

Change the line from git://github.com/sonoramac/INAppStoreWindow.git to git://github.com/zanechua/INAppStoreWindow.git

Ctrl + O
Ctrl + X

pod install
git submodule update --init --recursive

Frameworks Archive: https://github.com/downloads/sbooth/SFBAudioEngine/Frameworks.tar.bz2
SFBAudioEngine requires frameworks that aren't included in the main repository. Download the Frameworks archive here and place the Frameworks folder inside Sonora/External/SFBAudioEngine/.

Generate your own Last.FM API Key at http://www.last.fm/api
Specify sonora://lastfmauth/ as the callback url

Copy the API Key and Secret Key to replace the placeholders in SNRConstants.m.

Fire up XCode and open Sonora.xcworkspace

Start Building and you'll start facing errors that are automatically fixable by XCode itself.

Apply this patch if you encounter this problem
https://github.com/andymatuschak/Sparkle/commit/f6622104bf56bd5e3151678462ee6ac12beeef97

Done!

No comments:

Post a Comment