Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6686677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:11:58+00:00 2026-05-26T05:11:58+00:00

I have an iOS app that I want to convert to using ARC .

  • 0

I have an iOS app that I want to convert to using ARC. I would just use the migration tool, but it errors out for me consistently during the preview phase.

I know I can use the -fobjc-arc compiler directive on a file-by-file basis, but I want to enable ARC on the entire project, then turn off individual classes using -fno-objc-arc.

New projects in 4.2 can use ARC by default, so there must be a switch somewhere.

Can anyone help me to convert the project to ARC

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:11:59+00:00Added an answer on May 26, 2026 at 5:11 am

    “ARC is available in Xcode 4.2, currently in beta, and only when
    compiling with Clang (a.k.a. “Apple LLVM compiler”). The setting is
    called, obviously enough, “Objective-C Automatic Reference Counting”.
    Turn it on, and off you go.

    If you’re working on existing code, changing this setting will produce
    an enormous quantity of errors. ARC not only manages memory for you,
    but it forbids you from trying to do it yourself. It’s illegal to
    manually send retain/release/autorelease when using ARC. Since normal
    non-ARC Cocoa code is littered with this stuff, you’ll get a lot of
    errors.

    Fortunately, Xcode offers a tool to convert existing code. Select Edit
    -> Refactor… -> Convert to Objective-C ARC
    … and Xcode will guide you through converting your code. Although there may be some
    situations where it needs help figuring out what to do, the process
    should be largely automatic.”

    I took that from this link, helped me a lot:
    http://www.mikeash.com/pyblog/friday-qa-2011-09-30-automatic-reference-counting.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an iOS app which is using storyboard (and ARC for that matter).
I'm developing an iOS app that I want it to have more than 10
iOS APP question I have a special case that I want There is a
I have an iOS app that's using AS3 and AIR. I have external swfs
I have a pretty basic internal iOS app that I want to send a
I have an iOS app that takes use of SQLite. I use FireFox and
Basically I have an iOS app that I want to find the parliamentary constituency
I have ios native app for ipad with bar i want that app to
I have an iOS app that uses a number of enums for valid values,
I have an old iOS app that I never distributed and am now trying

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.