Skip to content

Commit dc16829

Browse files
author
Shan Haq
committed
fixed realm
1 parent bdb5040 commit dc16829

File tree

7 files changed

+56
-65
lines changed

7 files changed

+56
-65
lines changed

Podfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
platform :ios, '7.0'
22

3-
pod 'Realm'
3+
target 'SHModelObject' do
4+
pod 'Realm'
5+
end
6+

Podfile.lock

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
PODS:
2-
- Realm (0.93.2):
3-
- Realm/Headers (= 0.93.2)
4-
- Realm/Headers (0.93.2)
2+
- Realm (1.0.1):
3+
- Realm/Headers (= 1.0.1)
4+
- Realm/Headers (1.0.1)
55

66
DEPENDENCIES:
77
- Realm
88

99
SPEC CHECKSUMS:
10-
Realm: 2fdd0ae74f730e190384e0338d8a0d3654df8220
10+
Realm: 2e15e39d35b08abb529e212ed5d8af107b5236c8
1111

12-
COCOAPODS: 0.37.2
12+
PODFILE CHECKSUM: b1143668b7fe2a332a4de82369d518b567cb9515
13+
14+
COCOAPODS: 1.0.0

SHModelObject.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SHModelObject"
3-
s.version = "1.1.7"
3+
s.version = "1.1.8"
44

55
s.summary = "`SHModelObject` a utility class that reads NSDictionary and populates the instance variables and properties automatically."
66

SHModelObject.xcodeproj/project.pbxproj

Lines changed: 36 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
66D76422E11513B26933E1D3 /* libPods-SHModelObject.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F0DD241F9FB35F3F93B212D7 /* libPods-SHModelObject.a */; };
1011
F23ED34A1ACECF1100DECB41 /* SHModelObject.m in Sources */ = {isa = PBXBuildFile; fileRef = F23ED3491ACECF1100DECB41 /* SHModelObject.m */; };
1112
F244007518DACD6B0078B6B0 /* SHRealmObject.m in Sources */ = {isa = PBXBuildFile; fileRef = F244006F18DACD6B0078B6B0 /* SHRealmObject.m */; };
1213
F244007618DACD6B0078B6B0 /* SHAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = F244007118DACD6B0078B6B0 /* SHAppDelegate.m */; };
@@ -23,7 +24,6 @@
2324
F2B4095618BA16F500611B29 /* SHModalObjectTests.m in Sources */ = {isa = PBXBuildFile; fileRef = F2B4095518BA16F500611B29 /* SHModalObjectTests.m */; };
2425
F2FA97791AB40312002B972D /* SHAnotherModel.m in Sources */ = {isa = PBXBuildFile; fileRef = F2FA97781AB40312002B972D /* SHAnotherModel.m */; };
2526
F2FA977C1AB40377002B972D /* SHTestModal.m in Sources */ = {isa = PBXBuildFile; fileRef = F2FA977B1AB40377002B972D /* SHTestModal.m */; };
26-
FE33A26DADB42E2A9B70AD3A /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5F7A64675AD7CA1B19A20D9B /* libPods.a */; };
2727
/* End PBXBuildFile section */
2828

2929
/* Begin PBXContainerItemProxy section */
@@ -37,9 +37,9 @@
3737
/* End PBXContainerItemProxy section */
3838

3939
/* Begin PBXFileReference section */
40-
554FB54EEF06419DD0589430 /* Pods.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.debug.xcconfig; path = "Pods/Target Support Files/Pods/Pods.debug.xcconfig"; sourceTree = "<group>"; };
41-
5F7A64675AD7CA1B19A20D9B /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
42-
BF6124F63E5B13E3367BBE50 /* Pods.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = Pods.release.xcconfig; path = "Pods/Target Support Files/Pods/Pods.release.xcconfig"; sourceTree = "<group>"; };
40+
2E37114A22AF21385F13CD70 /* Pods-SHModelObject.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SHModelObject.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SHModelObject/Pods-SHModelObject.debug.xcconfig"; sourceTree = "<group>"; };
41+
A11D18FAC0D2005DF68AFF60 /* Pods-SHModelObject.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SHModelObject.release.xcconfig"; path = "Pods/Target Support Files/Pods-SHModelObject/Pods-SHModelObject.release.xcconfig"; sourceTree = "<group>"; };
42+
F0DD241F9FB35F3F93B212D7 /* libPods-SHModelObject.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SHModelObject.a"; sourceTree = BUILT_PRODUCTS_DIR; };
4343
F23ED3481ACECF1100DECB41 /* SHModelObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SHModelObject.h; sourceTree = "<group>"; };
4444
F23ED3491ACECF1100DECB41 /* SHModelObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SHModelObject.m; sourceTree = "<group>"; };
4545
F23ED34B1ACF64F400DECB41 /* SHConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SHConstants.h; sourceTree = "<group>"; };
@@ -76,7 +76,7 @@
7676
F2B4093318BA16F400611B29 /* CoreGraphics.framework in Frameworks */,
7777
F2B4093518BA16F400611B29 /* UIKit.framework in Frameworks */,
7878
F2B4093118BA16F400611B29 /* Foundation.framework in Frameworks */,
79-
FE33A26DADB42E2A9B70AD3A /* libPods.a in Frameworks */,
79+
66D76422E11513B26933E1D3 /* libPods-SHModelObject.a in Frameworks */,
8080
);
8181
runOnlyForDeploymentPostprocessing = 0;
8282
};
@@ -93,11 +93,11 @@
9393
/* End PBXFrameworksBuildPhase section */
9494

9595
/* Begin PBXGroup section */
96-
69326B473AE325959E36B0F9 /* Pods */ = {
96+
9CC53B38E18E241B9ED13283 /* Pods */ = {
9797
isa = PBXGroup;
9898
children = (
99-
554FB54EEF06419DD0589430 /* Pods.debug.xcconfig */,
100-
BF6124F63E5B13E3367BBE50 /* Pods.release.xcconfig */,
99+
2E37114A22AF21385F13CD70 /* Pods-SHModelObject.debug.xcconfig */,
100+
A11D18FAC0D2005DF68AFF60 /* Pods-SHModelObject.release.xcconfig */,
101101
);
102102
name = Pods;
103103
sourceTree = "<group>";
@@ -122,7 +122,7 @@
122122
F2B4094F18BA16F500611B29 /* SHModelObjectTests */,
123123
F2B4092F18BA16F400611B29 /* Frameworks */,
124124
F2B4092E18BA16F400611B29 /* Products */,
125-
69326B473AE325959E36B0F9 /* Pods */,
125+
9CC53B38E18E241B9ED13283 /* Pods */,
126126
);
127127
sourceTree = "<group>";
128128
};
@@ -142,7 +142,7 @@
142142
F2B4093218BA16F400611B29 /* CoreGraphics.framework */,
143143
F2B4093418BA16F400611B29 /* UIKit.framework */,
144144
F2B4094918BA16F500611B29 /* XCTest.framework */,
145-
5F7A64675AD7CA1B19A20D9B /* libPods.a */,
145+
F0DD241F9FB35F3F93B212D7 /* libPods-SHModelObject.a */,
146146
);
147147
name = Frameworks;
148148
sourceTree = "<group>";
@@ -199,11 +199,12 @@
199199
isa = PBXNativeTarget;
200200
buildConfigurationList = F2B4095918BA16F500611B29 /* Build configuration list for PBXNativeTarget "SHModelObject" */;
201201
buildPhases = (
202-
90F5EDA36F268FAEB41BE27A /* Check Pods Manifest.lock */,
202+
76C12C901F41E58794DEA0B3 /* 📦 Check Pods Manifest.lock */,
203203
F2B4092918BA16F400611B29 /* Sources */,
204204
F2B4092A18BA16F400611B29 /* Frameworks */,
205205
F2B4092B18BA16F400611B29 /* Resources */,
206-
34EDAE56034AE01B459D91EA /* Copy Pods Resources */,
206+
D220DA26D629C2FF6DDD81B5 /* 📦 Embed Pods Frameworks */,
207+
B01D7BF1DBBA78C75C6A004B /* 📦 Copy Pods Resources */,
207208
);
208209
buildRules = (
209210
);
@@ -241,11 +242,6 @@
241242
CLASSPREFIX = SH;
242243
LastUpgradeCheck = 0500;
243244
ORGANIZATIONNAME = grevolution;
244-
TargetAttributes = {
245-
F2B4094718BA16F500611B29 = {
246-
TestTargetID = F2B4092C18BA16F400611B29;
247-
};
248-
};
249245
};
250246
buildConfigurationList = F2B4092818BA16F400611B29 /* Build configuration list for PBXProject "SHModelObject" */;
251247
compatibilityVersion = "Xcode 3.2";
@@ -286,34 +282,49 @@
286282
/* End PBXResourcesBuildPhase section */
287283

288284
/* Begin PBXShellScriptBuildPhase section */
289-
34EDAE56034AE01B459D91EA /* Copy Pods Resources */ = {
285+
76C12C901F41E58794DEA0B3 /* 📦 Check Pods Manifest.lock */ = {
290286
isa = PBXShellScriptBuildPhase;
291287
buildActionMask = 2147483647;
292288
files = (
293289
);
294290
inputPaths = (
295291
);
296-
name = "Copy Pods Resources";
292+
name = "📦 Check Pods Manifest.lock";
297293
outputPaths = (
298294
);
299295
runOnlyForDeploymentPostprocessing = 0;
300296
shellPath = /bin/sh;
301-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
297+
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
302298
showEnvVarsInLog = 0;
303299
};
304-
90F5EDA36F268FAEB41BE27A /* Check Pods Manifest.lock */ = {
300+
B01D7BF1DBBA78C75C6A004B /* 📦 Copy Pods Resources */ = {
305301
isa = PBXShellScriptBuildPhase;
306302
buildActionMask = 2147483647;
307303
files = (
308304
);
309305
inputPaths = (
310306
);
311-
name = "Check Pods Manifest.lock";
307+
name = "📦 Copy Pods Resources";
312308
outputPaths = (
313309
);
314310
runOnlyForDeploymentPostprocessing = 0;
315311
shellPath = /bin/sh;
316-
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [[ $? != 0 ]] ; then\n cat << EOM\nerror: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\nEOM\n exit 1\nfi\n";
312+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SHModelObject/Pods-SHModelObject-resources.sh\"\n";
313+
showEnvVarsInLog = 0;
314+
};
315+
D220DA26D629C2FF6DDD81B5 /* 📦 Embed Pods Frameworks */ = {
316+
isa = PBXShellScriptBuildPhase;
317+
buildActionMask = 2147483647;
318+
files = (
319+
);
320+
inputPaths = (
321+
);
322+
name = "📦 Embed Pods Frameworks";
323+
outputPaths = (
324+
);
325+
runOnlyForDeploymentPostprocessing = 0;
326+
shellPath = /bin/sh;
327+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SHModelObject/Pods-SHModelObject-frameworks.sh\"\n";
317328
showEnvVarsInLog = 0;
318329
};
319330
/* End PBXShellScriptBuildPhase section */
@@ -446,7 +457,7 @@
446457
};
447458
F2B4095A18BA16F500611B29 /* Debug */ = {
448459
isa = XCBuildConfiguration;
449-
baseConfigurationReference = 554FB54EEF06419DD0589430 /* Pods.debug.xcconfig */;
460+
baseConfigurationReference = 2E37114A22AF21385F13CD70 /* Pods-SHModelObject.debug.xcconfig */;
450461
buildSettings = {
451462
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
452463
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -460,7 +471,7 @@
460471
};
461472
F2B4095B18BA16F500611B29 /* Release */ = {
462473
isa = XCBuildConfiguration;
463-
baseConfigurationReference = BF6124F63E5B13E3367BBE50 /* Pods.release.xcconfig */;
474+
baseConfigurationReference = A11D18FAC0D2005DF68AFF60 /* Pods-SHModelObject.release.xcconfig */;
464475
buildSettings = {
465476
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
466477
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -476,7 +487,6 @@
476487
isa = XCBuildConfiguration;
477488
buildSettings = {
478489
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
479-
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SHModalObject.app/SHModalObject";
480490
FRAMEWORK_SEARCH_PATHS = (
481491
"$(SDKROOT)/Developer/Library/Frameworks",
482492
"$(inherited)",
@@ -490,7 +500,6 @@
490500
);
491501
INFOPLIST_FILE = "SHModalObjectTests/SHModelObjectTests-Info.plist";
492502
PRODUCT_NAME = SHModelObjectTests;
493-
TEST_HOST = "$(BUNDLE_LOADER)";
494503
WRAPPER_EXTENSION = xctest;
495504
};
496505
name = Debug;
@@ -499,7 +508,6 @@
499508
isa = XCBuildConfiguration;
500509
buildSettings = {
501510
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
502-
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/SHModalObject.app/SHModalObject";
503511
FRAMEWORK_SEARCH_PATHS = (
504512
"$(SDKROOT)/Developer/Library/Frameworks",
505513
"$(inherited)",
@@ -509,7 +517,6 @@
509517
GCC_PREFIX_HEADER = "SHModalObject/SHModalObject-Prefix.pch";
510518
INFOPLIST_FILE = "SHModalObjectTests/SHModelObjectTests-Info.plist";
511519
PRODUCT_NAME = SHModelObjectTests;
512-
TEST_HOST = "$(BUNDLE_LOADER)";
513520
WRAPPER_EXTENSION = xctest;
514521
};
515522
name = Release;

SHModelObject.xcodeproj/xcuserdata/shan.haq.xcuserdatad/xcschemes/SHModelObject.xcscheme

Lines changed: 7 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,14 @@
2020
ReferencedContainer = "container:SHModelObject.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
23-
<BuildActionEntry
24-
buildForTesting = "YES"
25-
buildForRunning = "YES"
26-
buildForProfiling = "NO"
27-
buildForArchiving = "NO"
28-
buildForAnalyzing = "YES">
29-
<BuildableReference
30-
BuildableIdentifier = "primary"
31-
BlueprintIdentifier = "F2B4094718BA16F500611B29"
32-
BuildableName = "SHModelObjectTests.xctest"
33-
BlueprintName = "SHModelObjectTests"
34-
ReferencedContainer = "container:SHModelObject.xcodeproj">
35-
</BuildableReference>
36-
</BuildActionEntry>
3723
</BuildActionEntries>
3824
</BuildAction>
3925
<TestAction
26+
buildConfiguration = "Debug"
4027
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4128
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
42-
shouldUseLaunchSchemeArgsEnv = "YES"
43-
buildConfiguration = "Debug">
29+
shouldUseLaunchSchemeArgsEnv = "YES">
4430
<Testables>
45-
<TestableReference
46-
skipped = "NO">
47-
<BuildableReference
48-
BuildableIdentifier = "primary"
49-
BlueprintIdentifier = "F2B4094718BA16F500611B29"
50-
BuildableName = "SHModelObjectTests.xctest"
51-
BlueprintName = "SHModelObjectTests"
52-
ReferencedContainer = "container:SHModelObject.xcodeproj">
53-
</BuildableReference>
54-
</TestableReference>
5531
</Testables>
5632
<MacroExpansion>
5733
<BuildableReference
@@ -62,15 +38,18 @@
6238
ReferencedContainer = "container:SHModelObject.xcodeproj">
6339
</BuildableReference>
6440
</MacroExpansion>
41+
<AdditionalOptions>
42+
</AdditionalOptions>
6543
</TestAction>
6644
<LaunchAction
45+
buildConfiguration = "Debug"
6746
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
6847
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
6948
launchStyle = "0"
7049
useCustomWorkingDirectory = "NO"
71-
buildConfiguration = "Debug"
7250
ignoresPersistentStateOnLaunch = "NO"
7351
debugDocumentVersioning = "YES"
52+
debugServiceExtension = "internal"
7453
allowLocationSimulation = "YES">
7554
<BuildableProductRunnable
7655
runnableDebuggingMode = "0">
@@ -86,10 +65,10 @@
8665
</AdditionalOptions>
8766
</LaunchAction>
8867
<ProfileAction
68+
buildConfiguration = "Release"
8969
shouldUseLaunchSchemeArgsEnv = "YES"
9070
savedToolIdentifier = ""
9171
useCustomWorkingDirectory = "NO"
92-
buildConfiguration = "Release"
9372
debugDocumentVersioning = "YES">
9473
<BuildableProductRunnable
9574
runnableDebuggingMode = "0">

SHModelObject/SHAppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
9595
NSLog([unarchived description], nil);
9696

9797
// realm testing
98-
[[NSFileManager defaultManager] removeItemAtPath:[RLMRealm defaultRealmPath] error:nil];
98+
[[NSFileManager defaultManager] removeItemAtURL:[[[RLMRealm defaultRealm] configuration] fileURL] error:nil];
9999
RLMRealm *realm = [RLMRealm defaultRealm];
100100
[realm transactionWithBlock:^{
101101
NSDictionary *d = @{

0 commit comments

Comments
 (0)