Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the "The fetch request's entity ..... appears to be from a dif… #118

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 28 additions & 23 deletions Example/Seam3.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,12 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0820;
LastUpgradeCheck = 0900;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = CocoaPods;
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = UPP93EJ3U2;
DevelopmentTeam = 95V7Z82R4F;
LastSwiftMigration = 0900;
SystemCapabilities = {
com.apple.BackgroundModes = {
Expand All @@ -384,13 +384,13 @@
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
DevelopmentTeam = UPP93EJ3U2;
DevelopmentTeam = 95V7Z82R4F;
LastSwiftMigration = 0900;
TestTargetID = 607FACCF1AFB9204008FA782;
};
BB7BB2751E5BCC93000ECBCB = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = UPP93EJ3U2;
DevelopmentTeam = 95V7Z82R4F;
ProvisioningStyle = Automatic;
SystemCapabilities = {
com.apple.BackgroundModes.appletvos = {
Expand All @@ -406,7 +406,7 @@
};
BB93414C1E57ECC500A0A63A = {
CreatedOnToolsVersion = 8.2.1;
DevelopmentTeam = UPP93EJ3U2;
DevelopmentTeam = 95V7Z82R4F;
LastSwiftMigration = 1010;
ProvisioningStyle = Automatic;
SystemCapabilities = {
Expand All @@ -422,10 +422,9 @@
};
buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "Seam3" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
Expand Down Expand Up @@ -704,6 +703,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand All @@ -712,12 +712,14 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand Down Expand Up @@ -745,7 +747,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand All @@ -758,6 +760,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
Expand All @@ -766,12 +769,14 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand All @@ -792,7 +797,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.2;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
Expand All @@ -808,12 +813,12 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Seam3_Example.entitlements;
DEVELOPMENT_TEAM = UPP93EJ3U2;
DEVELOPMENT_TEAM = 95V7Z82R4F;
INFOPLIST_FILE = Seam3/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = me.wilko.ios.Seam3.Example;
PRODUCT_BUNDLE_IDENTIFIER = MichaelKlybor.Seam3.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
Expand All @@ -827,12 +832,12 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = Seam3_Example.entitlements;
DEVELOPMENT_TEAM = UPP93EJ3U2;
DEVELOPMENT_TEAM = 95V7Z82R4F;
INFOPLIST_FILE = Seam3/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MODULE_NAME = ExampleApp;
PRODUCT_BUNDLE_IDENTIFIER = me.wilko.ios.Seam3.Example;
PRODUCT_BUNDLE_IDENTIFIER = MichaelKlybor.Seam3.Example;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 5.0;
Expand All @@ -843,7 +848,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = 1869198D3CB5ED89E8C758BF /* Pods-Seam3_Tests.debug.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = UPP93EJ3U2;
DEVELOPMENT_TEAM = 95V7Z82R4F;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
Expand All @@ -865,7 +870,7 @@
isa = XCBuildConfiguration;
baseConfigurationReference = B5B20B29F0DB774105D4FD6D /* Pods-Seam3_Tests.release.xcconfig */;
buildSettings = {
DEVELOPMENT_TEAM = UPP93EJ3U2;
DEVELOPMENT_TEAM = 95V7Z82R4F;
FRAMEWORK_SEARCH_PATHS = (
"$(SDKROOT)/Developer/Library/Frameworks",
"$(inherited)",
Expand All @@ -890,10 +895,10 @@
CODE_SIGN_ENTITLEMENTS = Seam3_Example_TVOS/Seam3_Example_TVOS.entitlements;
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "iPhone Developer";
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = UPP93EJ3U2;
DEVELOPMENT_TEAM = 95V7Z82R4F;
INFOPLIST_FILE = "$(SRCROOT)/Seam3_Example_TVOS/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = me.wilko.tvos.Seam3.Example;
PRODUCT_BUNDLE_IDENTIFIER = MichaelKlybor.Seam3.Example.tvos;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = appletvos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
Expand All @@ -913,10 +918,10 @@
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CODE_SIGN_ENTITLEMENTS = Seam3_Example_TVOS/Seam3_Example_TVOS.entitlements;
"CODE_SIGN_IDENTITY[sdk=appletvos*]" = "iPhone Developer";
DEVELOPMENT_TEAM = UPP93EJ3U2;
DEVELOPMENT_TEAM = 95V7Z82R4F;
INFOPLIST_FILE = "$(SRCROOT)/Seam3_Example_TVOS/Info.plist";
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = me.wilko.tvos.Seam3.Example;
PRODUCT_BUNDLE_IDENTIFIER = MichaelKlybor.Seam3.Example.tvos;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = appletvos;
SWIFT_VERSION = 5.0;
Expand All @@ -936,11 +941,11 @@
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = UPP93EJ3U2;
DEVELOPMENT_TEAM = 95V7Z82R4F;
INFOPLIST_FILE = Seam3_Example_OSX/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12;
PRODUCT_BUNDLE_IDENTIFIER = me.wilko.osx.Seam3.Example;
PRODUCT_BUNDLE_IDENTIFIER = "MichaelKlybor.Seam3.Example-v2.osx";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
Expand All @@ -959,11 +964,11 @@
CODE_SIGN_ENTITLEMENTS = Seam3_Example_OSX/Seam3_Example_OSX.entitlements;
CODE_SIGN_IDENTITY = "Mac Developer";
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = UPP93EJ3U2;
DEVELOPMENT_TEAM = 95V7Z82R4F;
INFOPLIST_FILE = Seam3_Example_OSX/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
MACOSX_DEPLOYMENT_TARGET = 10.12;
PRODUCT_BUNDLE_IDENTIFIER = me.wilko.osx.Seam3.Example;
PRODUCT_BUNDLE_IDENTIFIER = "MichaelKlybor.Seam3.Example-v2.osx";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SWIFT_SWIFT3_OBJC_INFERENCE = On;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1000"
LastUpgradeVersion = "1020"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
9 changes: 5 additions & 4 deletions Example/Seam3/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ import Seam3

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDelegate {

static let syncDelayTime = 30.0 //seconds between sync attempts

var window: UIWindow?

var smStore: SMStore?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
let splitViewController = self.window!.rootViewController as! UISplitViewController
let navigationController = splitViewController.viewControllers[splitViewController.viewControllers.count-1] as! UINavigationController
Expand Down Expand Up @@ -186,7 +187,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele
fetchedDevice = NSEntityDescription.insertNewObject(forEntityName: "Device", into: moc) as? Device
fetchedDevice!.deviceID = deviceID
let 🐱 = #imageLiteral(resourceName: "kitten")
if let data = UIImageJPEGRepresentation(🐱, 0.5) {
if let data = 🐱.jpegData(compressionQuality: 0.5) {
fetchedDevice!.image = data
}
do {
Expand Down Expand Up @@ -241,7 +242,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDele

storeDescription.type = SMStore.type

storeDescription.setOption("iCloud.org.cocoapods.demo.Seam3-Example" as NSString, forKey: SMStore.SMStoreContainerOption)
//storeDescription.setOption("icloud.MichaelKlybor.Seam3.Example" as NSString, forKey: SMStore.SMStoreContainerOption)

// Uncomment next line for "client wins" conflict resolution policy
//storeDescription.setOption(NSNumber(value:SMSyncConflictResolutionPolicy.clientRecordWins.rawValue), forKey:SMStore.SMStoreSyncConflictResolutionPolicyOption)
Expand Down
2 changes: 1 addition & 1 deletion Example/Seam3/DetailViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class DetailViewController: UIViewController {

if detail.hasChanges {
do {
print("moc= \(String(describing: self.managedObjectContext))")
print("moc= \(String(describing: self.managedObjectContext)) has changes")
try self.managedObjectContext.save()
} catch {
print("Error saving: \(error)")
Expand Down
12 changes: 11 additions & 1 deletion Example/Seam3/MasterViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,18 @@ class MasterViewController: UITableViewController, NSFetchedResultsControllerDel
NotificationCenter.default.addObserver(forName: Notification.Name(rawValue: SMStoreNotification.SyncDidFinish), object: nil, queue: nil) { notification in

if notification.userInfo != nil {
//do this after a time delay, else we get into an constant series of syncs
/*(*******
_ = Timer.scheduledTimer(withTimeInterval: AppDelegate.syncDelayTime, repeats: false) {
(timer) in
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.smStore?.triggerSync(complete: true)
}
*******/
//got rid of the timer idea to see if we really get a constant stream of syncs after the various container issues have been fixed
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.smStore?.triggerSync(complete: true)

}

self.managedObjectContext?.refreshAllObjects()
Expand Down Expand Up @@ -193,7 +203,7 @@ class MasterViewController: UITableViewController, NSFetchedResultsControllerDel
return indexPath.section == 0
}

override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
if editingStyle == .delete {
if let context = self.managedObjectContext {
context.delete(self.events[indexPath.row])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="11759" systemVersion="16B2555" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<model type="com.apple.IDECoreDataModeler.DataModel" documentVersion="1.0" lastSavedToolsVersion="14490.99" systemVersion="18E226" minimumToolsVersion="Automatic" sourceLanguage="Swift" userDefinedModelVersionIdentifier="">
<entity name="Device" representedClassName="Device" syncable="YES" codeGenerationType="class">
<attribute name="deviceID" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="image" optional="YES" attributeType="Binary" allowsExternalBinaryDataStorage="YES" syncable="YES"/>
Expand All @@ -10,7 +10,7 @@
<attribute name="intAttribute" optional="YES" attributeType="Integer 16" defaultValueString="0" usesScalarValueType="YES" syncable="YES"/>
<attribute name="stringAttribute" optional="YES" attributeType="String" syncable="YES"/>
<attribute name="timestamp" optional="YES" attributeType="Date" usesScalarValueType="NO" syncable="YES"/>
<relationship name="creatingDevice" maxCount="1" deletionRule="Nullify" destinationEntity="Device" inverseName="events" inverseEntity="Device" syncable="YES"/>
<relationship name="creatingDevice" optional="YES" maxCount="1" deletionRule="Nullify" destinationEntity="Device" inverseName="events" inverseEntity="Device" syncable="YES"/>
</entity>
<elements>
<element name="Device" positionX="-63" positionY="9" width="128" height="90"/>
Expand Down
2 changes: 1 addition & 1 deletion Example/Seam3_Example.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string>development</string>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.org.cocoapods.demo.Seam3-Example</string>
<string>iCloud.$(CFBundleIdentifier)</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
Expand Down
3 changes: 2 additions & 1 deletion Example/Seam3_Example_OSX/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Seam3

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
static let syncDelayTime = 30.0 //seconds between sync attempts

var smStore: SMStore?

Expand Down Expand Up @@ -194,7 +195,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
coordinator = NSPersistentStoreCoordinator(managedObjectModel: self.managedObjectModel)
let url = self.applicationDocumentsDirectory.appendingPathComponent("Seam3Demo.storedata")
do {
let options:[String:Any] = [SMStore.SMStoreContainerOption:"iCloud.org.cocoapods.demo.Seam3-Example"]
let options:[String:Any] = [SMStore.SMStoreContainerOption:"icloud.MichaelKlybor.Seam3.Example"]
self.smStore = try coordinator!.addPersistentStore(ofType: SMStore.type, configurationName: nil, at: url, options: options) as? SMStore
} catch {
// Replace this implementation with code to handle the error appropriately.
Expand Down
7 changes: 5 additions & 2 deletions Example/Seam3_Example_OSX/DeviceTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ class DeviceTableViewController: NSViewController {
NotificationCenter.default.addObserver(forName: Notification.Name(rawValue: SMStoreNotification.SyncDidFinish), object: nil, queue: nil) { notification in

if notification.userInfo != nil {
let appDelegate = NSApplication.shared.delegate as! AppDelegate
appDelegate.smStore?.triggerSync(complete: true)
_ = Timer.scheduledTimer(withTimeInterval: AppDelegate.syncDelayTime, repeats: false) {
(timer) in
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.smStore?.triggerSync(complete: true)
}
}

self.managedObjectContext?.refreshAllObjects()
Expand Down
7 changes: 5 additions & 2 deletions Example/Seam3_Example_OSX/EventTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ class EventTableViewController: NSViewController {
NotificationCenter.default.addObserver(forName: Notification.Name(rawValue: SMStoreNotification.SyncDidFinish), object: nil, queue: nil) { notification in

if notification.userInfo != nil {
let appDelegate = NSApplication.shared.delegate as! AppDelegate
appDelegate.smStore?.triggerSync(complete: true)
_ = Timer.scheduledTimer(withTimeInterval: AppDelegate.syncDelayTime, repeats: false) {
(timer) in
let appDelegate = UIApplication.shared.delegate as! AppDelegate
appDelegate.smStore?.triggerSync(complete: true)
}
}

self.managedObjectContext?.refreshAllObjects()
Expand Down
2 changes: 1 addition & 1 deletion Example/Seam3_Example_OSX/Seam3_Example_OSX.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string>development</string>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.org.cocoapods.demo.Seam3-Example</string>
<string>iCloud.MichaelKlybor.Seam3.Example</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
Expand Down
2 changes: 1 addition & 1 deletion Example/Seam3_Example_TVOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

storeDescription.type = SMStore.type

storeDescription.setOption("iCloud.org.cocoapods.demo.Seam3-Example" as NSString, forKey: SMStore.SMStoreContainerOption)
storeDescription.setOption("icloud.MichaelKlybor.Seam3.Example" as NSString, forKey: SMStore.SMStoreContainerOption)

// Uncomment next line for "client wins" conflict resolution policy
// storeDescription.setOption(NSNumber(value:SMSyncConflictResolutionPolicy.clientRecordWins.rawValue), forKey:SMStore.SMStoreSyncConflictResolutionPolicyOption)
Expand Down
2 changes: 1 addition & 1 deletion Example/Seam3_Example_TVOS/Seam3_Example_TVOS.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string>development</string>
<key>com.apple.developer.icloud-container-identifiers</key>
<array>
<string>iCloud.org.cocoapods.demo.Seam3-Example</string>
<string>iCloud.MichaelKlybor.Seam3.Example</string>
</array>
<key>com.apple.developer.icloud-services</key>
<array>
Expand Down
Loading