pomodoro
pomodoro copied to clipboard
Is this Mavericks compatible?
I tried to compile in Xcode (5?) for Mavericks but it failed with 20 issues including semantics, format string, lexical and deprecation issues.
It is Mavericks compatible. I just built it now.
- Follow the 4.5+ instructions in the README.TXT.
- Accept the recommended project upgrades.
- 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.
- 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
#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.
@rcaputo do you think you could share your updated Xcode project file? I can't get past the ARC update stage #302
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.
@izimbra Hey I got the same issue here, can't work out the garbage collection errors
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:
- Once the project is open in XCode click on "Find" -> "Find in Project"
- Search for "GCC_ENABLE_OBJC_GC"
- go through ALL the results and simply delete them
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
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.