Adding ARC and non-ARC files to project

Import non-ARC files to ARC project

If your project is compiling with ARC, and you want to import some non-ARC file to your project:
import non-ARC files to your project,
click the Project -> Build Phases Tab, and expand Compile Sources section,
select non-ARC files and double click your selection,
Then add -fno-objc-arc to the popup window.

 

Import ARC files to non-ARC project

If your project is compiling with ARC, and you want to import some non-ARC file to your project:
import ARC files to your project,
click the Project -> Build Phases Tab, and expand Compile Sources section,
select non-ARC files and double click your selection,
Then add -fobjc-arc to the popup window.




No comments:

Post a Comment