I am adding a new framework to a Swift + Objective-C project.
So, into my framework, I have an umbrella header: xFramework.h
#import <UIKit/UIKit.h>
//! Project version number for xFramework.
FOUNDATION_EXPORT double xFrameworkVersionNumber;
//! Project version string for xFramework.
FOUNDATION_EXPORT const unsigned char xFrameworkVersionString[];
I don't want to depend upon UIKit
in my framework. But, if I remove the import, FOUNDATION_EXPORT
will not be found.
- How much from this autogenerated file do I really need?
- Are the
xFrameworkVersionNumber
andxFrameworkVersionString[]
needed to be used in a Swift Framework?
I've understood from this question that FOUNDATION_EXPORT
is a kind of public
.
Thank you.