Skip to content

Commit 5e0a132

Browse files
author
StuFF mc
committed
Adding the necessary CloudKit Entitlement but one should use his own Bundle Identifier for that
1 parent b395871 commit 5e0a132

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

Example/RealmCloudKit.xcodeproj/project.pbxproj

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
4CEEDEBB1C559C33009B1961 /* CloudKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CEEDEBA1C559C33009B1961 /* CloudKit.framework */; };
1011
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
1112
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };
1213
607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; };
@@ -30,6 +31,8 @@
3031
/* Begin PBXFileReference section */
3132
2A1A85C2AA1446BD6CC9E16C /* Pods-RealmCloudKit_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RealmCloudKit_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RealmCloudKit_Tests/Pods-RealmCloudKit_Tests.debug.xcconfig"; sourceTree = "<group>"; };
3233
3FABBF9AD1F94A16814FE556 /* Pods_RealmCloudKit_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_RealmCloudKit_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
34+
4CEEDEB91C559C30009B1961 /* RealmCloudKit_Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = RealmCloudKit_Example.entitlements; sourceTree = "<group>"; };
35+
4CEEDEBA1C559C33009B1961 /* CloudKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CloudKit.framework; path = System/Library/Frameworks/CloudKit.framework; sourceTree = SDKROOT; };
3336
57BF9DF8D8AE6966D6710BD0 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
3437
607FACD01AFB9204008FA782 /* RealmCloudKit_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = RealmCloudKit_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
3538
607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -55,6 +58,7 @@
5558
buildActionMask = 2147483647;
5659
files = (
5760
ADE468A05634ED9D94178734 /* Pods_RealmCloudKit_Example.framework in Frameworks */,
61+
4CEEDEBB1C559C33009B1961 /* CloudKit.framework in Frameworks */,
5862
);
5963
runOnlyForDeploymentPostprocessing = 0;
6064
};
@@ -72,6 +76,7 @@
7276
20848E8FE6F670A935B44428 /* Frameworks */ = {
7377
isa = PBXGroup;
7478
children = (
79+
4CEEDEBA1C559C33009B1961 /* CloudKit.framework */,
7580
88CE755406C41603975DD30D /* Pods_RealmCloudKit_Example.framework */,
7681
3FABBF9AD1F94A16814FE556 /* Pods_RealmCloudKit_Tests.framework */,
7782
);
@@ -92,6 +97,7 @@
9297
607FACC71AFB9204008FA782 = {
9398
isa = PBXGroup;
9499
children = (
100+
4CEEDEB91C559C30009B1961 /* RealmCloudKit_Example.entitlements */,
95101
607FACF51AFB993E008FA782 /* Podspec Metadata */,
96102
607FACD21AFB9204008FA782 /* Example for RealmCloudKit */,
97103
607FACE81AFB9204008FA782 /* Tests */,
@@ -210,11 +216,17 @@
210216
isa = PBXProject;
211217
attributes = {
212218
LastSwiftUpdateCheck = 0720;
213-
LastUpgradeCheck = 0630;
219+
LastUpgradeCheck = 0720;
214220
ORGANIZATIONNAME = CocoaPods;
215221
TargetAttributes = {
216222
607FACCF1AFB9204008FA782 = {
217223
CreatedOnToolsVersion = 6.3.1;
224+
DevelopmentTeam = TS7K5XE329;
225+
SystemCapabilities = {
226+
com.apple.iCloud = {
227+
enabled = 1;
228+
};
229+
};
218230
};
219231
607FACE41AFB9204008FA782 = {
220232
CreatedOnToolsVersion = 6.3.1;
@@ -423,6 +435,7 @@
423435
COPY_PHASE_STRIP = NO;
424436
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
425437
ENABLE_STRICT_OBJC_MSGSEND = YES;
438+
ENABLE_TESTABILITY = YES;
426439
GCC_C_LANGUAGE_STANDARD = gnu99;
427440
GCC_DYNAMIC_NO_PIC = NO;
428441
GCC_NO_COMMON_BLOCKS = YES;
@@ -522,6 +535,7 @@
522535
);
523536
INFOPLIST_FILE = Tests/Info.plist;
524537
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
538+
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
525539
PRODUCT_NAME = "$(TARGET_NAME)";
526540
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RealmCloudKit_Example.app/RealmCloudKit_Example";
527541
};
@@ -538,6 +552,7 @@
538552
);
539553
INFOPLIST_FILE = Tests/Info.plist;
540554
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
555+
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
541556
PRODUCT_NAME = "$(TARGET_NAME)";
542557
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/RealmCloudKit_Example.app/RealmCloudKit_Example";
543558
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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>com.apple.developer.icloud-container-identifiers</key>
6+
<array>
7+
<string>iCloud.$(CFBundleIdentifier)</string>
8+
</array>
9+
<key>com.apple.developer.icloud-services</key>
10+
<array>
11+
<string>CloudKit</string>
12+
</array>
13+
</dict>
14+
</plist>

0 commit comments

Comments
 (0)