ugol / pomodoro

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

Xcode 5.1, ARC vs Garbage Colletor #302

Open kominak opened 10 years ago

kominak commented 10 years ago

Hello,

Since Xcode 5.1 (on Mavericks), Garbage Collector is deprecated in favor of ARC (automatic reference counting). I wasn't able to compile the app nor its dependencies. I am an iOS developer and have virtually no experiences with OS X development, so I wasn't able to fix all the ARC/GC-related issues.

Could somebody please take a look at that? :)

Or maybe even easier: what about compiling the app and sharing the binary somewhere?

Thanks a lot!

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

PrismaPhonic commented 9 years ago

can confirm that I can't build. I tried the trick of removing GCC_ENABLE_OBJC_GC and on my system that created a compilation failure of exit:1