pomodoro icon indicating copy to clipboard operation
pomodoro copied to clipboard

Xcode 5.1, ARC vs Garbage Colletor

Open kominak opened this issue 10 years ago • 2 comments

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!

kominak avatar Mar 20 '14 08:03 kominak

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

jnardiello avatar Apr 13 '14 20:04 jnardiello

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

PrismaPhonic avatar Sep 18 '14 02:09 PrismaPhonic