Hi,
I am sharing a source file across different project /build.
Say..
for Project1
MainClass.m
for Project2
MainClass.m
I dont want to import Class2 in Project1 and Class1 in Project2.
How to conditionally import files / compile block of statements
Time being am doing conditional execution of code block based on a key in Localizable.strings file as both project have different Localizable.strings file
But i want to prevent it from compiling as well.
Plz help...
I am sharing a source file across different project /build.
Say..
for Project1
MainClass.m
Code:
#import Class1.h
#import Class2.h
.........
........
.......
<using Class1 instance>
<using Class2 instance> // DEAD CODE IN PROJECT 1
for Project2
MainClass.m
Code:
#import Class1.h
#import Class2.h
.........
........
.......
<using Class1 instance> // DEAD CODE IN PROJECT 2
<using Class2 instance>
I dont want to import Class2 in Project1 and Class1 in Project2.
How to conditionally import files / compile block of statements
Time being am doing conditional execution of code block based on a key in Localizable.strings file as both project have different Localizable.strings file
But i want to prevent it from compiling as well.
Plz help...