Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 5.1, ARC vs Garbage Colletor #302

Open
kominak opened this issue Mar 20, 2014 · 2 comments
Open

Xcode 5.1, ARC vs Garbage Colletor #302

kominak opened this issue Mar 20, 2014 · 2 comments

Comments

@kominak
Copy link

kominak commented Mar 20, 2014

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
Copy link

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

@PrismaPhonic
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants