Permalink
Browse files

Add version numbering support to framework

Enabled "Apple generic versioning" system.
Initial build number is 23, in Info.plist.
Use 'agvtool next-version' to bump it (and then commit
the change to the project file.)

Change-Id: I4f23c79a436607a0fa673875e23a3ed652ecc49a
Reviewed-on: http://review.couchbase.org/9721
Reviewed-by: Chris Anderson <jchris@couchbase.com>
Tested-by: Jens Alfke <jens@couchbase.com>
  • Loading branch information...
1 parent 5741c00 commit 279d382588e0c285f5080efdb061a5e408260dea @snej snej committed Sep 22, 2011
View
4 Framework/Couchbase.xcodeproj/project.pbxproj
@@ -444,6 +444,7 @@
buildSettings = {
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
+ CURRENT_PROJECT_VERSION = 23;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
@@ -453,6 +454,7 @@
PUBLIC_HEADERS_FOLDER_PATH = include;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
+ VERSIONING_SYSTEM = "apple-generic";
WARNING_CFLAGS = "-Wall";
};
name = Debug;
@@ -463,6 +465,7 @@
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COPY_PHASE_STRIP = NO;
+ CURRENT_PROJECT_VERSION = 23;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_TREAT_WARNINGS_AS_ERRORS = YES;
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
@@ -472,6 +475,7 @@
PUBLIC_HEADERS_FOLDER_PATH = include;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
+ VERSIONING_SYSTEM = "apple-generic";
WARNING_CFLAGS = "-Wall";
};
name = Release;
View
4 Framework/Resources/Couchbase.framework-Info.plist
@@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>1.0 developer preview (build ${CURRENT_PROJECT_VERSION})</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>${CURRENT_PROJECT_VERSION}</string>
<key>NSHumanReadableCopyright</key>
<string></string>
<key>NSPrincipalClass</key>

0 comments on commit 279d382

Please sign in to comment.