Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

header file in iOS 8 embedded frameworks

I'm trying to create an embedded framework for use with iOS8. After creating one called SampleKit (BTW; is there any convention here, should I used a prefix?), it contains a header file that is puzzling me:

//! Project version number for SampleKit.
FOUNDATION_EXPORT double SampleKitVersionNumber;

//! Project version string for SampleKit.
FOUNDATION_EXPORT const unsigned char SampleKitVersionString[];

I know that FOUNDATION_EXPORT is a macro for extern or extern "C", but I'm not sure about the two constants. Where am I supposed to set the value for them?

like image 265
cfischer Avatar asked Nov 19 '14 14:11

cfischer


People also ask

What is embedded framework IOS?

A framework is a hierarchical directory that encapsulates a dynamic library, header files, and resources, such as storyboards, image files, and localized strings, into a single package. Apps using frameworks need to embed the framework in the app's bundle.

How do I open a header file in XCode?

Holding the Command key, click the import/include statement to view the header. Also, you can Command-click on a symbol to jump to the header file that defines it.

Where is embedded binaries in XCode?

I found one more curious thing in XCode 8. "General -> Embedded binaries" and "Build Phases -> Embed Frameworks" seem to be linked, because if you drag a .


1 Answers

Project > Build Settings > Versioning > Current Project Version :

enter image description here

like image 77
Axel Guilmin Avatar answered Sep 25 '22 17:09

Axel Guilmin