0

I am working on a project written in Objective-C. Current app has three target based on environment(Dev, Prelive and Live).

Now I have to add new functionality which must be written in Swift language. I follow this link and app complied successfully in Dev target (i.e. Environment) .

In objective-C files I have added header as below

#import "Dev-Swift.h"

and I have imported above 'Dev-Swift.h' in multiple files.

Now issue is that I have three target and suppose If I have to run on any other target(Say Prelive) then I have to made changes with header again in multiple files & it will be

import "Prelive-Swift.h"

which will be again a tough task & may leads error while changing target.

Can any one suggest how to tackle this issue. I do not want change header every time when I change target.

Let me know if I have clarify question more.

1 Answer 1

1

did you try to put the same name for the three environment. in this case you don't need to change the file name each time like this : enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.