diff --git a/macosx/Info.plist b/macosx/Info.plist
new file mode 100644
index 0000000..dd6cc70
--- /dev/null
+++ b/macosx/Info.plist
@@ -0,0 +1,26 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ FMWK
+ CFBundleShortVersionString
+ 3.3.1
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(CURRENT_PROJECT_VERSION)
+ NSPrincipalClass
+
+
+
diff --git a/macosx/SQLCipher.h b/macosx/SQLCipher.h
new file mode 100644
index 0000000..d43dd88
--- /dev/null
+++ b/macosx/SQLCipher.h
@@ -0,0 +1,5 @@
+
+@import Foundation;
+
+FOUNDATION_EXPORT double SQLCipherVersionNumber;
+FOUNDATION_EXPORT const unsigned char SQLCipherVersionString[];
diff --git a/sqlcipher.xcodeproj/project.pbxproj b/sqlcipher.xcodeproj/project.pbxproj
index a3459bc..cd79669 100644
--- a/sqlcipher.xcodeproj/project.pbxproj
+++ b/sqlcipher.xcodeproj/project.pbxproj
@@ -21,7 +21,8 @@
/* End PBXAggregateTarget section */
/* Begin PBXBuildFile section */
- 28B46E6317CD07A700672510 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28B46E6217CD07A600672510 /* Security.framework */; };
+ 4C0041A61BFC3A5000ED2AD5 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C0041A51BFC3A5000ED2AD5 /* Security.framework */; };
+ 4C0041AB1BFC3A7E00ED2AD5 /* SQLCipher.h in Headers */ = {isa = PBXBuildFile; fileRef = 4C0041A91BFC3A7E00ED2AD5 /* SQLCipher.h */; settings = {ATTRIBUTES = (Public, ); }; };
9069D0A30FCE1A4D0042E34C /* sqlite3.c in Sources */ = {isa = PBXBuildFile; fileRef = 9069D0A20FCE1A4D0042E34C /* sqlite3.c */; };
/* End PBXBuildFile section */
@@ -33,20 +34,37 @@
remoteGlobalIDString = 9069D08B0FCE185A0042E34C;
remoteInfo = amalgamation;
};
+ 4C0041A11BFC392D00ED2AD5 /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = 08FB7793FE84155DC02AAC07 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = 9069D08B0FCE185A0042E34C;
+ remoteInfo = amalgamation;
+ };
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
- 28B46E6217CD07A600672510 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
+ 4C0041981BFC382400ED2AD5 /* SQLCipher.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SQLCipher.framework; sourceTree = BUILT_PRODUCTS_DIR; };
+ 4C0041A51BFC3A5000ED2AD5 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
+ 4C0041A81BFC3A7E00ED2AD5 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = macosx/Info.plist; sourceTree = ""; };
+ 4C0041A91BFC3A7E00ED2AD5 /* SQLCipher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SQLCipher.h; path = macosx/SQLCipher.h; sourceTree = ""; };
9069D0A20FCE1A4D0042E34C /* sqlite3.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sqlite3.c; sourceTree = ""; };
D2AAC046055464E500DB518D /* libsqlcipher.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libsqlcipher.a; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
+ 4C0041941BFC382400ED2AD5 /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
D289987405E68DCB004EDB86 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
- 28B46E6317CD07A700672510 /* Security.framework in Frameworks */,
+ 4C0041A61BFC3A5000ED2AD5 /* Security.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -56,9 +74,9 @@
08FB7794FE84155DC02AAC07 /* sqlcipher */ = {
isa = PBXGroup;
children = (
- 28B46E6217CD07A600672510 /* Security.framework */,
08FB7795FE84155DC02AAC07 /* Source */,
- C6A0FF2B0290797F04C91782 /* Documentation */,
+ 4C0041A41BFC3A3800ED2AD5 /* Supporting Files */,
+ 4C0041A71BFC3A5400ED2AD5 /* Frameworks */,
1AB674ADFE9D54B511CA2CBB /* Products */,
);
name = sqlcipher;
@@ -76,20 +94,39 @@
isa = PBXGroup;
children = (
D2AAC046055464E500DB518D /* libsqlcipher.a */,
+ 4C0041981BFC382400ED2AD5 /* SQLCipher.framework */,
);
name = Products;
sourceTree = "";
};
- C6A0FF2B0290797F04C91782 /* Documentation */ = {
+ 4C0041A41BFC3A3800ED2AD5 /* Supporting Files */ = {
isa = PBXGroup;
children = (
+ 4C0041A91BFC3A7E00ED2AD5 /* SQLCipher.h */,
+ 4C0041A81BFC3A7E00ED2AD5 /* Info.plist */,
);
- name = Documentation;
+ name = "Supporting Files";
+ sourceTree = "";
+ };
+ 4C0041A71BFC3A5400ED2AD5 /* Frameworks */ = {
+ isa = PBXGroup;
+ children = (
+ 4C0041A51BFC3A5000ED2AD5 /* Security.framework */,
+ );
+ name = Frameworks;
sourceTree = "";
};
/* End PBXGroup section */
/* Begin PBXHeadersBuildPhase section */
+ 4C0041951BFC382400ED2AD5 /* Headers */ = {
+ isa = PBXHeadersBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 4C0041AB1BFC3A7E00ED2AD5 /* SQLCipher.h in Headers */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
D2AAC043055464E500DB518D /* Headers */ = {
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
@@ -100,6 +137,25 @@
/* End PBXHeadersBuildPhase section */
/* Begin PBXNativeTarget section */
+ 4C0041971BFC382400ED2AD5 /* SQLCipher iOS */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 4C00419D1BFC382500ED2AD5 /* Build configuration list for PBXNativeTarget "SQLCipher iOS" */;
+ buildPhases = (
+ 4C0041931BFC382400ED2AD5 /* Sources */,
+ 4C0041941BFC382400ED2AD5 /* Frameworks */,
+ 4C0041951BFC382400ED2AD5 /* Headers */,
+ 4C0041961BFC382400ED2AD5 /* Resources */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 4C0041A21BFC392D00ED2AD5 /* PBXTargetDependency */,
+ );
+ name = "SQLCipher iOS";
+ productName = SQLCipher;
+ productReference = 4C0041981BFC382400ED2AD5 /* SQLCipher.framework */;
+ productType = "com.apple.product-type.framework";
+ };
D2AAC045055464E500DB518D /* sqlcipher */ = {
isa = PBXNativeTarget;
buildConfigurationList = 1DEB91EB08733DB70010E9CD /* Build configuration list for PBXNativeTarget "sqlcipher" */;
@@ -124,7 +180,12 @@
08FB7793FE84155DC02AAC07 /* Project object */ = {
isa = PBXProject;
attributes = {
- LastUpgradeCheck = 0450;
+ LastUpgradeCheck = 0710;
+ TargetAttributes = {
+ 4C0041971BFC382400ED2AD5 = {
+ CreatedOnToolsVersion = 7.1;
+ };
+ };
};
buildConfigurationList = 1DEB91EF08733DB70010E9CD /* Build configuration list for PBXProject "sqlcipher" */;
compatibilityVersion = "Xcode 3.2";
@@ -140,12 +201,23 @@
projectDirPath = "";
projectRoot = "";
targets = (
+ 4C0041971BFC382400ED2AD5 /* SQLCipher iOS */,
D2AAC045055464E500DB518D /* sqlcipher */,
9069D08B0FCE185A0042E34C /* amalgamation */,
);
};
/* End PBXProject section */
+/* Begin PBXResourcesBuildPhase section */
+ 4C0041961BFC382400ED2AD5 /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXResourcesBuildPhase section */
+
/* Begin PBXShellScriptBuildPhase section */
9069D08A0FCE185A0042E34C /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
@@ -164,6 +236,13 @@
/* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
+ 4C0041931BFC382400ED2AD5 /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
D2AAC044055464E500DB518D /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -180,6 +259,11 @@
target = 9069D08B0FCE185A0042E34C /* amalgamation */;
targetProxy = 289BE0E7180C4930003E52DA /* PBXContainerItemProxy */;
};
+ 4C0041A21BFC392D00ED2AD5 /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = 9069D08B0FCE185A0042E34C /* amalgamation */;
+ targetProxy = 4C0041A11BFC392D00ED2AD5 /* PBXContainerItemProxy */;
+ };
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
@@ -258,6 +342,7 @@
x86_64,
i386,
);
+ ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = c99;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -299,6 +384,141 @@
};
name = Release;
};
+ 4C00419E1BFC382500ED2AD5 /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ "ARCHS[sdk=iphoneos*]" = "$(ARCHS_STANDARD)";
+ "ARCHS[sdk=iphonesimulator*]" = "$(ARCHS_STANDARD)";
+ "ARCHS[sdk=macosx*]" = "$(ARCHS_STANDARD)";
+ BITCODE_GENERATION_MODE = marker;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ CURRENT_PROJECT_VERSION = 1;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ DEFINES_MODULE = YES;
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ ENABLE_TESTABILITY = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_DYNAMIC_NO_PIC = NO;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_PREPROCESSOR_DEFINITIONS = (
+ "DEBUG=1",
+ "$(inherited)",
+ );
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ INFOPLIST_FILE = macosx/Info.plist;
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+ MACOSX_DEPLOYMENT_TARGET = 10.9;
+ MTL_ENABLE_DEBUG_INFO = YES;
+ OTHER_CFLAGS = (
+ "-DSQLITE_HAS_CODEC",
+ "-DSQLITE_TEMP_STORE=2",
+ "-DSQLITE_THREADSAFE",
+ "-DSQLCIPHER_CRYPTO_CC",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = net.zetetic.SQLCipher;
+ PRODUCT_NAME = SQLCipher;
+ SKIP_INSTALL = YES;
+ SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TVOS_DEPLOYMENT_TARGET = 9.0;
+ VALID_ARCHS = "arm64 armv7 armv7s";
+ VERSIONING_SYSTEM = "apple-generic";
+ VERSION_INFO_PREFIX = "";
+ WATCHOS_DEPLOYMENT_TARGET = 2.0;
+ };
+ name = Debug;
+ };
+ 4C00419F1BFC382500ED2AD5 /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ALWAYS_SEARCH_USER_PATHS = NO;
+ "ARCHS[sdk=iphoneos*]" = "$(ARCHS_STANDARD)";
+ "ARCHS[sdk=iphonesimulator*]" = "$(ARCHS_STANDARD)";
+ "ARCHS[sdk=macosx*]" = "$(ARCHS_STANDARD)";
+ BITCODE_GENERATION_MODE = bitcode;
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
+ CLANG_CXX_LIBRARY = "libc++";
+ CLANG_ENABLE_MODULES = YES;
+ CLANG_ENABLE_OBJC_ARC = YES;
+ CLANG_WARN_BOOL_CONVERSION = YES;
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
+ CLANG_WARN_EMPTY_BODY = YES;
+ CLANG_WARN_ENUM_CONVERSION = YES;
+ CLANG_WARN_INT_CONVERSION = YES;
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
+ CLANG_WARN_UNREACHABLE_CODE = YES;
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
+ CODE_SIGN_IDENTITY = "iPhone Developer";
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ CURRENT_PROJECT_VERSION = 1;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ DEFINES_MODULE = YES;
+ DYLIB_COMPATIBILITY_VERSION = 1;
+ DYLIB_CURRENT_VERSION = 1;
+ DYLIB_INSTALL_NAME_BASE = "@rpath";
+ ENABLE_NS_ASSERTIONS = NO;
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
+ GCC_C_LANGUAGE_STANDARD = gnu99;
+ GCC_NO_COMMON_BLOCKS = YES;
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
+ GCC_WARN_UNUSED_FUNCTION = YES;
+ INFOPLIST_FILE = macosx/Info.plist;
+ INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
+ MACOSX_DEPLOYMENT_TARGET = 10.9;
+ MTL_ENABLE_DEBUG_INFO = NO;
+ OTHER_CFLAGS = (
+ "-DSQLITE_HAS_CODEC",
+ "-DSQLITE_TEMP_STORE=2",
+ "-DSQLITE_THREADSAFE",
+ "-DSQLCIPHER_CRYPTO_CC",
+ );
+ PRODUCT_BUNDLE_IDENTIFIER = net.zetetic.SQLCipher;
+ PRODUCT_NAME = SQLCipher;
+ SKIP_INSTALL = YES;
+ SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
+ TARGETED_DEVICE_FAMILY = "1,2";
+ TVOS_DEPLOYMENT_TARGET = 9.0;
+ VALIDATE_PRODUCT = YES;
+ VALID_ARCHS = "arm64 armv7 armv7s";
+ VERSIONING_SYSTEM = "apple-generic";
+ VERSION_INFO_PREFIX = "";
+ WATCHOS_DEPLOYMENT_TARGET = 2.0;
+ };
+ name = Release;
+ };
9069D08C0FCE185A0042E34C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -346,6 +566,14 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ 4C00419D1BFC382500ED2AD5 /* Build configuration list for PBXNativeTarget "SQLCipher iOS" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 4C00419E1BFC382500ED2AD5 /* Debug */,
+ 4C00419F1BFC382500ED2AD5 /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ };
9069D0900FCE18970042E34C /* Build configuration list for PBXAggregateTarget "amalgamation" */ = {
isa = XCConfigurationList;
buildConfigurations = (
diff --git a/sqlcipher.xcodeproj/xcshareddata/xcschemes/SQLCipher iOS.xcscheme b/sqlcipher.xcodeproj/xcshareddata/xcschemes/SQLCipher iOS.xcscheme
new file mode 100644
index 0000000..a988b2b
--- /dev/null
+++ b/sqlcipher.xcodeproj/xcshareddata/xcschemes/SQLCipher iOS.xcscheme
@@ -0,0 +1,80 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+