When creating a new Objective-C class, XCode inserts this line into the .h file:
#import <Foundation/Foundation.h>
Instead, I want it to be the following automatic:
@import Foundation;
Where can I set it?
When creating a new Objective-C class, XCode inserts this line into the .h file:
#import <Foundation/Foundation.h>
Instead, I want it to be the following automatic:
@import Foundation;
Where can I set it?
Xcode inserts the imports because this is how it is defined in the "new file templates". Instead of changing those built-in templates you should clone them and make your own, with adjusted import statement.
Look at this answer how to do that: https://stackoverflow.com/a/33743/396578