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

Basically I have an iOS app that I want to find the parliamentary constituency
I have an iOS app project. I want to add a target that calls
I have an iOS app that displays content from a sqlite db in a
I'm developing an app that uses iOS4 features (like MFMessageComposeViewController), but I want to
I'm developing a web app for iOS devices, and want to have a header
So I have just managed to build a timer on my iOS app I'm
I've written an iOS app that I want to port to android. This app
A client has an iOS app that makes fairly heavy use of UiWebViews (with
I have an iOS application (but this is just as applicable to an OS
I have built an iOS app which I would now like to test converting

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.