8000 Created a new SQLCipher framework target for iOS 8.0+. · g-coder/sqlcipher@8554c85 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8554c85

Browse files
committed
Created a new SQLCipher framework target for iOS 8.0+.
1 parent c01b94f commit 8554c85

File tree

4 files changed

+347
-8
lines changed

4 files changed

+347
-8
lines changed

macosx/Info.plist

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>FMWK</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>3.3.1</string>
19+
<key>CFBundleSignature</key>
20+
<string>????</string>
21+
<key>CFBundleVersion</key>
22+
<string>$(CURRENT_PROJECT_VERSION)</string>
23+
<key>NSPrincipalClass</key>
24+
<string></string>
25+
</dict>
26+
</plist>

macosx/SQLCipher.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
@import Foundation;
3+
4+
FOUNDATION_EXPORT double SQLCipherVersionNumber;
5+
FOUNDATION_EXPORT const unsigned char SQLCipherVersionString[];

sqlcipher.xcodeproj/project.pbxproj

Lines changed: 236 additions & 8 deletions
+
CLANG_ENABLE_OBJC_ARC = YES;
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
/* End PBXAggregateTarget section */
2222

2323
/* Begin PBXBuildFile section */
24-
28B46E6317CD07A700672510 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 28B46E6217CD07A600672510 /* Security.framework */; };
24+
4C0041A61BFC3A5000ED2AD5 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4C0041A51BFC3A5000ED2AD5 /* Security.framework */; };
25+
4C0041AB1BFC3A7E00ED2AD5 /* SQLCipher.h in Headers */ = {isa = PBXBuildFile; fileRef = 4C0041A91BFC3A7E00ED2AD5 /* SQLCipher.h */; settings = {ATTRIBUTES = (Public, ); }; };
2526
9069D0A30FCE1A4D0042E34C /* sqlite3.c in Sources */ = {isa = PBXBuildFile; fileRef = 9069D0A20FCE1A4D0042E34C /* sqlite3.c */; };
2627
/* End PBXBuildFile section */
2728

@@ -33,20 +34,37 @@
3334
remoteGlobalIDString = 9069D08B0FCE185A0042E34C;
3435
remoteInfo = amalgamation;
3536
};
37+
4C0041A11BFC392D00ED2AD5 /* PBXContainerItemProxy */ = {
38+
isa = PBXContainerItemProxy;
39+
containerPortal = 08FB7793FE84155DC02AAC07 /* Project object */;
40+
proxyType = 1;
41+
remoteGlobalIDString = 9069D08B0FCE185A0042E34C;
42+
remoteInfo = amalgamation;
43+
};
3644
/* End PBXContainerItemProxy section */
3745

3846
/* Begin PBXFileReference section */
39-
28B46E6217CD07A600672510 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
47+
4C0041981BFC382400ED2AD5 /* SQLCipher.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SQLCipher.framework; sourceTree = BUILT_PRODUCTS_DIR; };
48+
4C0041A51BFC3A5000ED2AD5 /* Security.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Security.framework; path = System/Library/Frameworks/Security.framework; sourceTree = SDKROOT; };
49+
4C0041A81BFC3A7E00ED2AD5 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = macosx/Info.plist; sourceTree = "<group>"; };
50+
4C0041A91BFC3A7E00ED2AD5 /* SQLCipher.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SQLCipher.h; path = macosx/SQLCipher.h; sourceTree = "<group>"; };
4051
9069D0A20FCE1A4D0042E34C /* sqlite3.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = sqlite3.c; sourceTree = "<group>"; };
4152
D2AAC046055464E500DB518D /* libsqlcipher.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libsqlcipher.a; sourceTree = BUILT_PRODUCTS_DIR; };
4253
/* End PBXFileReference section */
4354

4455
/* Begin PBXFrameworksBuildPhase section */
56+
4C0041941BFC382400ED2AD5 /* Frameworks */ = {
57+
isa = PBXFrameworksBuildPhase;
58+
buildActionMask = 2147483647;
59+
files = (
60+
);
61+
runOnlyForDeploymentPostprocessing = 0;
62+
};
4563
D289987405E68DCB004EDB86 /* Frameworks */ = {
4664
isa = PBXFrameworksBuildPhase;
4765
buildActionMask = 2147483647;
4866
files = (
49-
28B46E6317CD07A700672510 /* Security.framework in Frameworks */,
67+
4C0041A61BFC3A5000ED2AD5 /* Security.framework in Frameworks */,
5068
);
5169
runOnlyForDeploymentPostprocessing = 0;
5270
};
@@ -56,9 +74,9 @@
5674
08FB7794FE84155DC02AAC07 /* sqlcipher */ = {
5775
isa = PBXGroup;
5876
children = (
59-
28B46E6217CD07A600672510 /* Security.framework */,
6077
08FB7795FE84155DC02AAC07 /* Source */,
61-
C6A0FF2B0290797F04C91782 /* Documentation */,
78+
4C0041A41BFC3A3800ED2AD5 /* Supporting Files */,
79+
4C0041A71BFC3A5400ED2AD5 /* Frameworks */,
6280
1AB674ADFE9D54B511CA2CBB /* Products */,
6381
);
6482
name = sqlcipher;
@@ -76,20 +94,39 @@
7694
isa = PBXGroup;
7795
children = (
7896
D2AAC046055464E500DB518D /* libsqlcipher.a */,
97+
4C0041981BFC382400ED2AD5 /* SQLCipher.framework */,
7998
);
8099
name = Products;
81100
sourceTree = "<group>";
82101
};
83-
C6A0FF2B0290797F04C91782 /* Documentation */ = {
102+
4C0041A41BFC3A3800ED2AD5 /* Supporting Files */ = {
103+
isa = PBXGroup;
104+
children = (
105+
4C0041A91BFC3A7E00ED2AD5 /* SQLCipher.h */,
106+
4C0041A81BFC3A7E00ED2AD5 /* Info.plist */,
107+
);
108+
name = "Supporting Files";
109+
sourceTree = "<group>";
110+
};
111+
4C0041A71BFC3A5400ED2AD5 /* Frameworks */ = {
84112
isa = PBXGroup;
85113
children = (
114+
4C0041A51BFC3A5000ED2AD5 /* Security.framework */,
86115
);
87-
name = Documentation;
116+
name = Frameworks;
88117
sourceTree = "<group>";
89118
};
90119
/* End PBXGroup section */
91120

92121
/* Begin PBXHeadersBuildPhase section */
122+
4C0041951BFC382400ED2AD5 /* Headers */ = {
123+
isa = PBXHeadersBuildPhase;
124+
buildActionMask = 2147483647;
125+
files = (
126+
4C0041AB1BFC3A7E00ED2AD5 /* SQLCipher.h in Headers */,
127+
);
128+
runOnlyForDeploymentPostprocessing = 0;
129+
};
93130
D2AAC043055464E500DB518D /* Headers */ = {
94131
isa = PBXHeadersBuildPhase;
95132
buildActionMask = 2147483647;
@@ -100,6 +137,25 @@
100137
/* End PBXHeadersBuildPhase section */
101138

102139
/* Begin PBXNativeTarget section */
140+
4C0041971BFC382400ED2AD5 /* SQLCipher iOS */ = {
141+
isa = PBXNativeTarget;
142+
buildConfigurationList = 4C00419D1BFC382500ED2AD5 /* Build configuration list for PBXNativeTarget "SQLCipher iOS" */;
143+
buildPhases = (
144+
4C0041931BFC382400ED2AD5 /* Sources */,
145+
4C0041941BFC382400ED2AD5 /* Frameworks */,
146+
4C0041951BFC382400ED2AD5 /* Headers */,
147+
4C0041961BFC382400ED2AD5 /* Resources */,
148+
);
149+
buildRules = (
150+
);
151+
dependencies = (
152+
4C0041A21BFC392D00ED2AD5 /* PBXTargetDependency */,
153+
);
154+
name = "SQLCipher iOS";
155+
productName = SQLCipher;
156+
productReference = 4C0041981BFC382400ED2AD5 /* SQLCipher.framework */;
157+
productType = "com.apple.product-type.framework";
158+
};
103159
D2AAC045055464E500DB518D /* sqlcipher */ = {
104160
isa = PBXNativeTarget;
105161
buildConfigurationList = 1DEB91EB08733DB70010E9CD /* Build configuration list for PBXNativeTarget "sqlcipher" */;
@@ -124,7 +180,12 @@
124180
08FB7793FE84155DC02AAC07 /* Project object */ = {
125181
isa = PBXProject;
126182
attributes = {
127-
LastUpgradeCheck = 0450;
183+
LastUpgradeCheck = 0710;
184+
TargetAttributes = {
185+
4C0041971BFC382400ED2AD5 = {
186+
CreatedOnToolsVersion = 7.1;
187+
};
188+
};
128189
};
129190
buildConfigurationList = 1DEB91EF08733DB70010E9CD /* Build configuration list for PBXProject "sqlcipher" */;
130191
compatibilityVersion = "Xcode 3.2";
@@ -140,12 +201,23 @@
140201
projectDirPath = "";
141202
projectRoot = "";
142203
targets = (
204+
4C0041971BFC382400ED2AD5 /* SQLCipher iOS */,
143205
D2AAC045055464E500DB518D /* sqlcipher */,
144206
9069D08B0FCE185A0042E34C /* amalgamation */,
145207
);
146208
};
147209
/* End PBXProject section */
148210

211+
/* Begin PBXResourcesBuildPhase section */
212+
4C0041961BFC382400ED2AD5 /* Resources */ = {
213+
isa = PBXResourcesBuildPhase;
214+
buildActionMask = 2147483647;
215+
files = (
216+
);
217+
runOnlyForDeploymentPostprocessing = 0;
218+
};
219+
/* End PBXResourcesBuildPhase section */
220+
149221
/* Begin PBXShellScriptBuildPhase section */
150222
9069D08A0FCE185A0042E34C /* ShellScript */ = {
151223
isa = PBXShellScriptBuildPhase;
@@ -164,6 +236,13 @@
164236
/* End PBXShellScriptBuildPhase section */
165237

166238
/* Begin PBXSourcesBuildPhase section */
239+
4C0041931BFC382400ED2AD5 /* Sources */ = {
240+
isa = PBXSourcesBuildPhase;
241+
buildActionMask = 2147483647;
242+
files = (
243+
);
244+
runOnlyForDeploymentPostprocessing = 0;
245+
};
167246
D2AAC044055464E500DB518D /* Sources */ = {
168247
isa = PBXSourcesBuildPhase;
169248
buildActionMask = 2147483647;
@@ -180,6 +259,11 @@
180259
target = 9069D08B0FCE185A0042E34C /* amalgamation */;
181260
targetProxy = 289BE0E7180C4930003E52DA /* PBXContainerItemProxy */;
182261
};
262+
4C0041A21BFC392D00ED2AD5 /* PBXTargetDependency */ = {
263+
isa = PBXTargetDependency;
264+
target = 9069D08B0FCE185A0042E34C /* amalgamation */;
265+
targetProxy = 4C0041A11BFC392D00ED2AD5 /* PBXContainerItemProxy */;
266+
};
183267
/* End PBXTargetDependency section */
184268

185269
/* Begin XCBuildConfiguration section */
@@ -258,6 +342,7 @@
258342
x86_64,
259343
i386,
260344
);
345+
ENABLE_TESTABILITY = YES;
261346
GCC_C_LANGUAGE_STANDARD = c99;
262347
GCC_OPTIMIZATION_LEVEL = 0;
263348
GCC_WARN_ABOUT_RETURN_TYPE = YES;
@@ -299,6 +384,141 @@
299384
};
300385
name = Release;
301386
};
387+
4C00419E1BFC382500ED2AD5 /* Debug */ = {
388+
isa = XCBuildConfiguration;
389+
buildSettings = {
390+
ALWAYS_SEARCH_USER_PATHS = NO;
391+
"ARCHS[sdk=iphoneos*]" = "$(ARCHS_STANDARD)";
392+
"ARCHS[sdk=iphonesimulator*]" = "$(ARCHS_STANDARD)";
393+
"ARCHS[sdk=macosx*]" = "$(ARCHS_STANDARD)";
394+
BITCODE_GENERATION_MODE = marker;
395+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
396+
CLANG_CXX_LIBRARY = "libc++";
397+
CLANG_ENABLE_MODULES = YES;
398+
CLANG_ENABLE_OBJC_ARC = YES;
399+
CLANG_WARN_BOOL_CONVERSION = YES;
400+
CLANG_WARN_CONSTANT_CONVERSION = YES;
401+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
402+
CLANG_WARN_EMPTY_BODY = YES;
403+
CLANG_WARN_ENUM_CONVERSION = YES;
404+
CLANG_WARN_INT_CONVERSION = YES;
405+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
406+
CLANG_WARN_UNREACHABLE_CODE = YES;
407+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
408+
CODE_SIGN_IDENTITY = "iPhone Developer";
409+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
410+
COPY_PHASE_STRIP = NO;
411+
CURRENT_PROJECT_VERSION = 1;
412+
DEBUG_INFORMATION_FORMAT = dwarf;
413+
DEFINES_MODULE = YES;
414+
DYLIB_COMPATIBILITY_VERSION = 1;
415+
DYLIB_CURRENT_VERSION = 1;
416+
DYLIB_INSTALL_NAME_BASE = "@rpath";
417+
ENABLE_STRICT_OBJC_MSGSEND = YES;
418+
ENABLE_TESTABILITY = YES;
419+
GCC_C_LANGUAGE_STANDARD = gnu99;
420+
GCC_DYNAMIC_NO_PIC = NO;
421+
GCC_NO_COMMON_BLOCKS = YES;
422+
GCC_PREPROCESSOR_DEFINITIONS = (
423+
"DEBUG=1",
424+
"$(inherited)",
425+
);
426+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
427+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
428+
GCC_WARN_UNDECLARED_SELECTOR = YES;
429+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
430+
GCC_WARN_UNUSED_FUNCTION = YES;
431+
INFOPLIST_FILE = macosx/Info.plist;
432+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
433+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
434+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
435+
MACOSX_DEPLOYMENT_TARGET = 10.9;
436+
MTL_ENABLE_DEBUG_INFO = YES;
437+
OTHER_CFLAGS = (
438+
"-DSQLITE_HAS_CODEC",
439+
"-DSQLITE_TEMP_STORE=2",
440+
"-DSQLITE_THREADSAFE",
441+
"-DSQLCIPHER_CRYPTO_CC",
442+
);
443+
PRODUCT_BUNDLE_IDENTIFIER = net.zetetic.SQLCipher;
444+
PRODUCT_NAME = SQLCipher;
445+
SKIP_INSTALL = YES;
446+
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
447+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
448+
TARGETED_DEVICE_FAMILY = "1,2";
449+
TVOS_DEPLOYMENT_TARGET = 9.0;
450+
VALID_ARCHS = "arm64 armv7 armv7s";
451+
VERSIONING_SYSTEM = "apple-generic";
452+
VERSION_INFO_PREFIX = "";
453+
WATCHOS_DEPLOYMENT_TARGET = 2.0;
454+
};
455+
name = Debug;
456+
};
457+
4C00419F1BFC382500ED2AD5 /* Release */ = {
458+
isa = XCBuildConfiguration;
459+
buildSettings = {
460+
ALWAYS_SEARCH_USER_PATHS = NO;
461+
"ARCHS[sdk=iphoneos*]" = "$(ARCHS_STANDARD)";
462+
"ARCHS[sdk=iphonesimulator*]" = "$(ARCHS_STANDARD)";
463+
"ARCHS[sdk=macosx*]" = "$(ARCHS_STANDARD)";
464+
BITCODE_GENERATION_MODE = bitcode;
465+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
466+
CLANG_CXX_LIBRARY = "libc++";
467+
CLANG_ENABLE_MODULES = YES;
468
469+
CLANG_WARN_BOOL_CONVERSION = YES;
470+
CLANG_WARN_CONSTANT_CONVERSION = YES;
471+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
472+
CLANG_WARN_EMPTY_BODY = YES;
473+
CLANG_WARN_ENUM_CONVERSION = YES;
474+
CLANG_WARN_INT_CONVERSION = YES;
475+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
476+
CLANG_WARN_UNREACHABLE_CODE = YES;
477+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
478+
CODE_SIGN_IDENTITY = "iPhone Developer";
479+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
480+
COPY_PHASE_STRIP = NO;
481+
CURRENT_PROJECT_VERSION = 1;
482+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
483+
DEFINES_MODULE = YES;
484+
DYLIB_COMPATIBILITY_VERSION = 1;
485+
DYLIB_CURRENT_VERSION = 1;
486+
DYLIB_INSTALL_NAME_BASE = "@rpath";
487+
ENABLE_NS_ASSERTIONS = NO;
488+
ENABLE_STRICT_OBJC_MSGSEND = YES;
489+
GCC_C_LANGUAGE_STANDARD = gnu99;
490+
GCC_NO_COMMON_BLOCKS = YES;
491+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
492+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
493+
GCC_WARN_UNDECLARED_SELECTOR = YES;
494+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
495+
GCC_WARN_UNUSED_FUNCTION = YES;
496+
INFOPLIST_FILE = macosx/Info.plist;
497+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
498+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
499+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
500+
MACOSX_DEPLOYMENT_TARGET = 10.9;
501+
MTL_ENABLE_DEBUG_INFO = NO;
502+
OTHER_CFLAGS = (
503+
"-DSQLITE_HAS_CODEC",
504+
"-DSQLITE_TEMP_STORE=2",
505+
"-DSQLITE_THREADSAFE",
506+
"-DSQLCIPHER_CRYPTO_CC",
507+
);
508+
PRODUCT_BUNDLE_IDENTIFIER = net.zetetic.SQLCipher;
509+
PRODUCT_NAME = SQLCipher;
510+
SKIP_INSTALL = YES;
511+
SUPPORTED_PLATFORMS = "iphonesimulator iphoneos";
512+
TARGETED_DEVICE_FAMILY = "1,2";
513+
TVOS_DEPLOYMENT_TARGET = 9.0;
514+
VALIDATE_PRODUCT = YES;
515+
VALID_ARCHS = "arm64 armv7 armv7s";
516+
VERSIONING_SYSTEM = "apple-generic";
517+
VERSION_INFO_PREFIX = "";
518+
WATCHOS_DEPLOYMENT_TARGET = 2.0;
519+
};
520+
name = Release;
521+
};
302522
9069D08C0FCE185A0042E34C /* Debug */ = {
303523
isa = XCBuildConfiguration;
304524
buildSettings = {
@@ -346,6 +566,14 @@
346566
defaultConfigurationIsVisible = 0;
347567
defaultConfigurationName = Release;
348568
};
569+
4C00419D1BFC382500ED2AD5 /* Build configuration list for PBXNativeTarget "SQLCipher iOS" */ = {
570+
isa = XCConfigurationList;
571+
buildConfigurations = (
572+
4C00419E1BFC382500ED2AD5 /* Debug */,
573+
4C00419F1BFC382500ED2AD5 /* Release */,
574+
);
575+
defaultConfigurationIsVisible = 0;
576+
};
349577
9069D0900FCE18970042E34C /* Build configuration list for PBXAggregateTarget "amalgamation" */ = {
350578
isa = XCConfigurationList;
351579
buildConfigurations = (

0 commit comments

Comments
 (0)
0