ugol / pomodoro

Time management for your Mac
http://pomodoro.ugolandini.com
881 stars 238 forks source link

Is this Mavericks compatible? #299

Open wc8 opened 10 years ago

wc8 commented 10 years ago

I tried to compile in Xcode (5?) for Mavericks but it failed with 20 issues including semantics, format string, lexical and deprecation issues.

rcaputo commented 10 years ago

It is Mavericks compatible. I just built it now.

  1. Follow the 4.5+ instructions in the README.TXT.
  2. Accept the recommended project upgrades.
  3. If compiling getActiveUrlsFromBrowsers.applescript fails, it's because you don't have Chrome installed. Install Chrome. If you prefer Chromium, install that, and "Google Chrome" to "Chromium" in the appnescript. If you'll never install a Chromium-based browser, and you aren't distributing binaries, then you can probably remove that section of the script.

The deprecations are advanced warning of features that will go away in the future. XCode supports those features for now, so they're harmless for now.

rcaputo commented 10 years ago
  1. I also had to update build settings to match my system.

Click on Pomodoro (the target app) in the left sidebar. The center section should switch to "Build Settings".

Make sure "Architectures" match your system. For me: Architectures: "Standard Architectures (64-bit Intel) (x86_64)". Base SDK: "Latest OS X (OS X 10.9)"

Make sure "Build Options" match your system. For me: Compiler for C/C++/Objective-C: Apple LLVM 5.0

wc8 commented 10 years ago

295 it seems was my main issue. For that, the objective C link instructions helped:

Go to the project > Targets > Build Settings Search Header Search Paths Add

I was able to fix the error by adding "$(SDKROOT)/usr/include/libxml2" (including double quotes). – Hemang Jan 22 '13 at 7:03

However, your 10.9 instructions helped. The last issue was figuring out that README.txt "distribute" did indeed mean Build and finding the app. I now have compiled my first mac app with Xcode. Thank you.

izimbra commented 10 years ago

@rcaputo do you think you could share your updated Xcode project file? I can't get past the ARC update stage #302

rcaputo commented 10 years ago

I did nothing regarding the ARC update. I think those were harmless warnings the last time I built Pomodoro. If the latest XCode update broke the build, I can't help you yet.

pefavre commented 10 years ago

@izimbra Hey I got the same issue here, can't work out the garbage collection errors

jnardiello commented 10 years ago

I can confirm that building on XCode 5.X fails because of Garbage collection being deprecated. Pressing "Not now" when asked what to do with it when you first open the project doesn't help.

I was still able to build the project with a minor and tricky change:

After this, you will be able to build the App getting a few warnings. Note: This is NOT a well-done solution. I'm not a OS X dev and i have no idea if this change is going to blow up your mac. I did it, it worked and the app seems working fine. Take it or leave it. Hope it helps

pefavre commented 10 years ago

Thanks @jnardiello, it finally worked. Kind of dirty but I don't mind, it's just for local use. By the way, I got around the Distribute issue with https://github.com/ugol/pomodoro/issues/286.