iOS Framework- specify a version number

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/shengpeng3344/article/details/91534577

In doing sdk development, you need to set the framework sdk current version number, the general framework will be created automatically generated

#import <UIKit/UIKit.h>

//! Project version number for YourSDK.
FOUNDATION_EXPORT double YourSDKVersionNumber;

//! Project version string for YourSDK.
FOUNDATION_EXPORT const unsigned char YourSDKVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <YourSDK/PublicHeader.h>

This value may be provided in xcode by selecting Targets-> Build Settings-> Current Project Version

You can set the current version of the framework.
Here Insert Picture Description
It is worth noting here that if you set 3.7.2 format, floating-point YourSDKVersionNumber prints 3.7

Guess you like

Origin blog.csdn.net/shengpeng3344/article/details/91534577