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 8398849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:08:59+00:00 2026-06-09T21:08:59+00:00

Okay so I’ve been happily using ARC in my project until I attempted to

  • 0

Okay so I’ve been happily using ARC in my project until I attempted to add some third party code to my project. I dragged the folder in (not a project file, just some viewcontroller source files). The 3rd party code was not ARC so I did Edit->Refactor->Convert To Objective-C ARC and choose ONLY the files from the 3rd party app to convert to ARC. Everything went swimmingly but I started getting the following warning in MY previously working code:

TTKSoundGenerator.m:94:10: warning: '__bridge' casts have no effect when not using ARC [-Warc-bridge-casts-disallowed-in-nonarc]
        (__bridge CFStringRef)soundFile,
         ^~~~~~~~
1 warning generated.

This is the first clue that something is amiss. I go ahead and build and run and sure enough the app crashes where things are getting released while still being referenced. So ARC is not working at all despite the fact that the Objective-C Automatic Reference Counting is set to YES in project file.

I went back and did Edit->Refactor->Convert To Objective-C ARC on ALL the files in the project hoping to rectify this but no dice. So now the project is stuck in ARC limbo. It seems like unselecting files when doing the refactor somehow told Xcode to add a special case of ‘No ARC’ to those files. Any ideas on how to fix or further diagnose this?

  • 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-06-09T21:09:01+00:00Added an answer on June 9, 2026 at 9:09 pm

    Okay so apparently if you do Edit->Refactor->Convert To Objective-C ARC on a project and only choose some of the files to convert then Xcode will mark the rest as No ARC. Running Edit->Refactor->Convert To Objective-C ARC again on all the files has no further effect once that option has been set. The fix is to go to your project settings, under Build Phases->Compile Sources, select the files you want ARC re-enabled and remove the -fno-objc-arc compiler flags that refactor added.

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

Sidebar

Related Questions

Okay, I'm reading about Linux kernel development and there are some code snippets using
Okay, my code is currently: public MySqlDataReader CreateQuery(string queryString, string connectionString ) { using
Okay, so I know that using eval() isn't great, but I haven't been able
Okay so my question is this. Say I have a simple C++ code: #include
Okay, I have setup up a handler for a div click but for some
Okay,I've been following this tutorial http://coenraets.org/blog/android-samples/androidtutorial/ Basically it gives me exactly what i need
Okay I am having some problems with being able to change bitmaps when a
Okay, I've set up a bit of code which searching for all the pages
Okay, so I have the weirdest problem right now. My code is fine! It
Okay say your using a app, and you opened a new activity and then

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.