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.
xFrameworkVersionNumber
and xFrameworkVersionString[]
needed to be used in a Swift Framework?I've understood from this question that FOUNDATION_EXPORT
is a kind of public
.
Thank you.
You can replace
#import <UIKit/UIKit.h>
by
#import <Foundation/Foundation.h>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With