Skip to content

Commit 48f04d6

Browse files
committed
Update Sample for CocoaPods 1.0
1 parent 81e44d0 commit 48f04d6

File tree

3 files changed

+41
-14
lines changed

3 files changed

+41
-14
lines changed

Sample/Podfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
source 'https://github.com/CocoaPods/Specs.git'
22

3-
pod 'Intercom'
3+
target 'Sample' do
4+
pod 'Intercom'
5+
end

Sample/Sample.xcodeproj/project.pbxproj

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1A0F1E141B034B7100DA78D2 /* ITCViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1A0F1E131B034B7100DA78D2 /* ITCViewController.m */; };
1313
1A0F1E171B034B7100DA78D2 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1A0F1E151B034B7100DA78D2 /* Main.storyboard */; };
1414
1A0F1E191B034B7100DA78D2 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1A0F1E181B034B7100DA78D2 /* Images.xcassets */; };
15-
41B7C7F5B6A2B7BBFB150C42 /* libPods.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 98C43708C680E2477FAD146C /* libPods.a */; };
15+
4F728CBEAF4899CAFDF2B561 /* libPods-Sample.a in Frameworks */ = {isa = PBXBuildFile; fileRef = AA9CB0B5F606EF9F72A53774 /* libPods-Sample.a */; };
1616
/* End PBXBuildFile section */
1717

1818
/* Begin PBXFileReference section */
@@ -25,17 +25,20 @@
2525
1A0F1E131B034B7100DA78D2 /* ITCViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ITCViewController.m; sourceTree = "<group>"; };
2626
1A0F1E161B034B7100DA78D2 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
2727
1A0F1E181B034B7100DA78D2 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
28+
2E11289C1BCB3C0BAFC85F0E /* Pods-Sample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Sample.release.xcconfig"; path = "Pods/Target Support Files/Pods-Sample/Pods-Sample.release.xcconfig"; sourceTree = "<group>"; };
2829
85430A3E591C9A403636B060 /* 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>"; };
2930
8C6C505514D1683341C821E8 /* 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>"; };
3031
98C43708C680E2477FAD146C /* libPods.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libPods.a; sourceTree = BUILT_PRODUCTS_DIR; };
32+
AA9CB0B5F606EF9F72A53774 /* libPods-Sample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Sample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
33+
F05514512D1524DCE6B0DCA5 /* Pods-Sample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Sample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Sample/Pods-Sample.debug.xcconfig"; sourceTree = "<group>"; };
3134
/* End PBXFileReference section */
3235

3336
/* Begin PBXFrameworksBuildPhase section */
3437
1A0F1E051B034B7100DA78D2 /* Frameworks */ = {
3538
isa = PBXFrameworksBuildPhase;
3639
buildActionMask = 2147483647;
3740
files = (
38-
41B7C7F5B6A2B7BBFB150C42 /* libPods.a in Frameworks */,
41+
4F728CBEAF4899CAFDF2B561 /* libPods-Sample.a in Frameworks */,
3942
);
4043
runOnlyForDeploymentPostprocessing = 0;
4144
};
@@ -88,6 +91,8 @@
8891
children = (
8992
85430A3E591C9A403636B060 /* Pods.debug.xcconfig */,
9093
8C6C505514D1683341C821E8 /* Pods.release.xcconfig */,
94+
F05514512D1524DCE6B0DCA5 /* Pods-Sample.debug.xcconfig */,
95+
2E11289C1BCB3C0BAFC85F0E /* Pods-Sample.release.xcconfig */,
9196
);
9297
name = Pods;
9398
sourceTree = "<group>";
@@ -96,6 +101,7 @@
96101
isa = PBXGroup;
97102
children = (
98103
98C43708C680E2477FAD146C /* libPods.a */,
104+
AA9CB0B5F606EF9F72A53774 /* libPods-Sample.a */,
99105
);
100106
name = Frameworks;
101107
sourceTree = "<group>";
@@ -107,11 +113,12 @@
107113
isa = PBXNativeTarget;
108114
buildConfigurationList = 1A0F1E2B1B034B7100DA78D2 /* Build configuration list for PBXNativeTarget "Sample" */;
109115
buildPhases = (
110-
9EFCFC36D71F6292341B4961 /* Check Pods Manifest.lock */,
116+
9EFCFC36D71F6292341B4961 /* 📦 Check Pods Manifest.lock */,
111117
1A0F1E041B034B7100DA78D2 /* Sources */,
112118
1A0F1E051B034B7100DA78D2 /* Frameworks */,
113119
1A0F1E061B034B7100DA78D2 /* Resources */,
114-
C013679E94F860BABB90640E /* Copy Pods Resources */,
120+
C013679E94F860BABB90640E /* 📦 Copy Pods Resources */,
121+
B98032410A876DB88D7C85F0 /* 📦 Embed Pods Frameworks */,
115122
);
116123
buildRules = (
117124
);
@@ -128,7 +135,7 @@
128135
1A0F1E001B034B7100DA78D2 /* Project object */ = {
129136
isa = PBXProject;
130137
attributes = {
131-
LastUpgradeCheck = 0630;
138+
LastUpgradeCheck = 0730;
132139
ORGANIZATIONNAME = Intercom;
133140
TargetAttributes = {
134141
1A0F1E071B034B7100DA78D2 = {
@@ -167,34 +174,49 @@
167174
/* End PBXResourcesBuildPhase section */
168175

169176
/* Begin PBXShellScriptBuildPhase section */
170-
9EFCFC36D71F6292341B4961 /* Check Pods Manifest.lock */ = {
177+
9EFCFC36D71F6292341B4961 /* 📦 Check Pods Manifest.lock */ = {
171178
isa = PBXShellScriptBuildPhase;
172179
buildActionMask = 2147483647;
173180
files = (
174181
);
175182
inputPaths = (
176183
);
177-
name = "Check Pods Manifest.lock";
184+
name = "📦 Check Pods Manifest.lock";
178185
outputPaths = (
179186
);
180187
runOnlyForDeploymentPostprocessing = 0;
181188
shellPath = /bin/sh;
182189
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";
183190
showEnvVarsInLog = 0;
184191
};
185-
C013679E94F860BABB90640E /* Copy Pods Resources */ = {
192+
B98032410A876DB88D7C85F0 /* 📦 Embed Pods Frameworks */ = {
186193
isa = PBXShellScriptBuildPhase;
187194
buildActionMask = 2147483647;
188195
files = (
189196
);
190197
inputPaths = (
191198
);
192-
name = "Copy Pods Resources";
199+
name = "📦 Embed Pods Frameworks";
193200
outputPaths = (
194201
);
195202
runOnlyForDeploymentPostprocessing = 0;
196203
shellPath = /bin/sh;
197-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
204+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Sample/Pods-Sample-frameworks.sh\"\n";
205+
showEnvVarsInLog = 0;
206+
};
207+
C013679E94F860BABB90640E /* 📦 Copy Pods Resources */ = {
208+
isa = PBXShellScriptBuildPhase;
209+
buildActionMask = 2147483647;
210+
files = (
211+
);
212+
inputPaths = (
213+
);
214+
name = "📦 Copy Pods Resources";
215+
outputPaths = (
216+
);
217+
runOnlyForDeploymentPostprocessing = 0;
218+
shellPath = /bin/sh;
219+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Sample/Pods-Sample-resources.sh\"\n";
198220
showEnvVarsInLog = 0;
199221
};
200222
/* End PBXShellScriptBuildPhase section */
@@ -245,6 +267,7 @@
245267
COPY_PHASE_STRIP = NO;
246268
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
247269
ENABLE_STRICT_OBJC_MSGSEND = YES;
270+
ENABLE_TESTABILITY = YES;
248271
GCC_C_LANGUAGE_STANDARD = gnu99;
249272
GCC_DYNAMIC_NO_PIC = NO;
250273
GCC_NO_COMMON_BLOCKS = YES;
@@ -306,26 +329,28 @@
306329
};
307330
1A0F1E2C1B034B7100DA78D2 /* Debug */ = {
308331
isa = XCBuildConfiguration;
309-
baseConfigurationReference = 85430A3E591C9A403636B060 /* Pods.debug.xcconfig */;
332+
baseConfigurationReference = F05514512D1524DCE6B0DCA5 /* Pods-Sample.debug.xcconfig */;
310333
buildSettings = {
311334
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
312335
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
313336
INFOPLIST_FILE = Sample/Info.plist;
314337
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
315338
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
339+
PRODUCT_BUNDLE_IDENTIFIER = "io.intercom.$(PRODUCT_NAME:rfc1034identifier)";
316340
PRODUCT_NAME = "$(TARGET_NAME)";
317341
};
318342
name = Debug;
319343
};
320344
1A0F1E2D1B034B7100DA78D2 /* Release */ = {
321345
isa = XCBuildConfiguration;
322-
baseConfigurationReference = 8C6C505514D1683341C821E8 /* Pods.release.xcconfig */;
346+
baseConfigurationReference = 2E11289C1BCB3C0BAFC85F0E /* Pods-Sample.release.xcconfig */;
323347
buildSettings = {
324348
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
325349
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
326350
INFOPLIST_FILE = Sample/Info.plist;
327351
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
328352
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
353+
PRODUCT_BUNDLE_IDENTIFIER = "io.intercom.$(PRODUCT_NAME:rfc1034identifier)";
329354
PRODUCT_NAME = "$(TARGET_NAME)";
330355
};
331356
name = Release;

Sample/Sample/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>$(EXECUTABLE_NAME)</string>
99
<key>CFBundleIdentifier</key>
10-
<string>io.intercom.$(PRODUCT_NAME:rfc1034identifier)</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>

0 commit comments

Comments
 (0)