2015-04-08 126 views

回答

2

靜態庫沒有.plist文件(僅包含Info.plist文件),因此您需要通過變量或函數返回版本號;例如:

version.h中:

extern unsigned myApiVersionMajor, myApiVersionMinor; 
extern NSString *myApiVersion(); 

version.m:

unsigned myApiVersionMajor = 1, myApiVersionMinor = 9; 
NSString *myApiVersion() 
{ 
    return [NSString stringWithFormat:@"v%u.%u", myApiVersionMajor, myApiVersionMinor]; 
}