-2

enter image description hereI have a project in working/running condition for WebService calling and in which Objective-C Automatic Reference Counting is set "Yes".

I want to use this code to my another existing code which also has: Objective-C Automatic Reference Counting is set "Yes" but after adding all the necessary files and frameworks, it is throwing error for 'ARC forbids explicit message'.

please help as I am stucked !!

another_it_guy
  • 111
  • 1
  • 10

2 Answers2

1

Try the Flag "-fno-objc-arc" under project setting > Build phases>compile Sources and add this Flag against Non ARC Files.

Kumar KL
  • 15,315
  • 9
  • 38
  • 60
Ahsan
  • 827
  • 6
  • 10
0

You need to add -fno-objc-arc compiler flag:

double click on empty space in "Compiler flags" column for non-arc .m file row

enter image description here

malex
  • 9,874
  • 3
  • 56
  • 77
  • its really strange that when i am using Webservice Call project as diffrnt projct then it was working with ARC set as 'Yes' also but on adding to existing it is showing error for release,retain etc. – another_it_guy Apr 16 '14 at 12:49