VersionNumber and VersionString in the umbrella header

I am adding a new structure to my Swift + Objective-C project. So, in my structure, 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 do not want to depend on UIKitin my framework. But, if I delete the import, FOUNDATION_EXPORTit will not be found.

  • How many of this auto-generated file do I really need?
  • Do we need xFrameworkVersionNumberand xFrameworkVersionString[]in Swift Framework?

I understood from this question what FOUNDATION_EXPORTis kind pubic.

Thank.

+4
source share
1 answer

You can replace

#import <UIKit/UIKit.h>

by

#import <Foundation/Foundation.h>
+1
source

Source: https://habr.com/ru/post/1683307/


All Articles