Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-fno-objc-arc not working to disable ARC

I have tried the solution found in this post to disable ARC in AFNetworking files, but to no avail:

enter image description here

Any ideas where I am failing? Obviously the simpler the answer the better. I have also read that creating static libraries may help, but this seems complicated.

EDITS

I have tried deleting derived data and Clean and Build and restarting Xcode. No deals :(.

Also, there are no other projects in my workspace.

like image 834
Eric Brotto Avatar asked May 30 '12 15:05

Eric Brotto


People also ask

How do I disable HDMI ARC bypass?

HDMI ARC is disabled by default. To enable HDMI ARC, in the Home screen menu, navigate to Settings > System > Control other devices (CEC), and then highlight HDMI ARC. Press OK to enable or disable the feature.

How do I fix ARC not working?

Clear cache and clear data on your Android TV device. Perform a power reset on the TV and audio system: Turn off the TV and the audio system. Disconnect the power cords (mains lead) and the HDMI cable from both the TV and audio system.

Why does my soundbar say ARC?

The Audio Return Channel (ARC) connects your TV and audio system with a single High Speed HDMI® cable and eliminates the need for an additional composite audio or optical cable. You can view the video that covers ARC and enhanced ARC (eARC) features or skip to the detailed information.


4 Answers

Weird thing. I tried adding the -fno-objc-arc flag to some Facebook files and the project finally built. I guess the lesson here is that when Xcode generates these types of errors, the source of the problem may be in another file. This may especially be true if Xcode is complaining about a file that you have already flagged!

enter image description here

Hopefully this will be of help to somebody :).

like image 188
Eric Brotto Avatar answered Oct 12 '22 15:10

Eric Brotto


Just a little additional hint:

If you have multiple targets in your project check if you added the compiler flag -fno-objc-arc to all of them.

like image 41
Alpaslan Firat Avatar answered Oct 12 '22 17:10

Alpaslan Firat


"Convert to Objective-C ARC" is a code rewriting tool, -fno-objc-arc on the other hand is a compile time flag. It's simply irrelevant for the purpose of refactoring.

Before you click "Check", expend the target and deselect the files you want to keep ARC-free.

like image 29
Blago Avatar answered Oct 12 '22 15:10

Blago


Actually the problem is simple. Make sure there is no carriage return after the -fno-objc-arc flag you have entered in the compiler flags dialog.

like image 30
DarkestOne Avatar answered Oct 12 '22 16:10

DarkestOne