Skip to content

Commit f12218d

Browse files
committed
Convert Podfile to individual targets for CocoaPods 1.0.0
1 parent bfc3ff5 commit f12218d

File tree

2 files changed

+29
-44
lines changed

2 files changed

+29
-44
lines changed

MapboxGeocoder.xcodeproj/project.pbxproj

Lines changed: 21 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
12F407DDE8B7F17A70A9EC6F /* Pods_MapboxGeocoder.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 76927FB33641E3D7F2ED1B2E /* Pods_MapboxGeocoder.framework */; };
1011
8DF260A67CA4C55F8FA7CAA0 /* Pods_MapboxGeocoderTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9CD6EA86BBE0D7DE16654CB4 /* Pods_MapboxGeocoderTests.framework */; };
11-
9FB47CA319B32DD7142B5830 /* Pods.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6953F60F050AE274E006CB85 /* Pods.framework */; };
1212
DA210BAB1CB4BE73008088FD /* ForwardGeocodingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DA210BAA1CB4BE73008088FD /* ForwardGeocodingTests.swift */; };
1313
DA210BAD1CB4BFF7008088FD /* forward_valid.json in Resources */ = {isa = PBXBuildFile; fileRef = DA210BAC1CB4BFF7008088FD /* forward_valid.json */; };
1414
DA210BAF1CB4C5A7008088FD /* forward_invalid.json in Resources */ = {isa = PBXBuildFile; fileRef = DA210BAE1CB4C5A7008088FD /* forward_invalid.json */; };
@@ -92,14 +92,12 @@
9292
/* End PBXCopyFilesBuildPhase section */
9393

9494
/* Begin PBXFileReference section */
95-
045C1E17B01F46F0A4474B78 /* Pods-Unit Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Unit Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Unit Tests/Pods-Unit Tests.debug.xcconfig"; sourceTree = "<group>"; };
9695
17AE996AFE6CDB18135D3ABA /* Pods-MapboxGeocoderTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MapboxGeocoderTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MapboxGeocoderTests/Pods-MapboxGeocoderTests.debug.xcconfig"; sourceTree = "<group>"; };
9796
53A4FB553E5C07CD9CE68E00 /* Pods-MapboxGeocoderTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MapboxGeocoderTests.release.xcconfig"; path = "Pods/Target Support Files/Pods-MapboxGeocoderTests/Pods-MapboxGeocoderTests.release.xcconfig"; sourceTree = "<group>"; };
98-
6953F60F050AE274E006CB85 /* Pods.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods.framework; sourceTree = BUILT_PRODUCTS_DIR; };
97+
6B55078E561746475518C5B0 /* Pods-MapboxGeocoder.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MapboxGeocoder.release.xcconfig"; path = "Pods/Target Support Files/Pods-MapboxGeocoder/Pods-MapboxGeocoder.release.xcconfig"; sourceTree = "<group>"; };
98+
76927FB33641E3D7F2ED1B2E /* Pods_MapboxGeocoder.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MapboxGeocoder.framework; sourceTree = BUILT_PRODUCTS_DIR; };
9999
9CD6EA86BBE0D7DE16654CB4 /* Pods_MapboxGeocoderTests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_MapboxGeocoderTests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
100-
A7FEE3C3AC9D553F9763CB06 /* 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>"; };
101-
CC09570CD1A6D11014400590 /* 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>"; };
102-
D9281D748078BEB61AACF246 /* Pods_Unit_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Unit_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; };
100+
B4B7718C3CC6CB35C1916D3E /* Pods-MapboxGeocoder.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-MapboxGeocoder.debug.xcconfig"; path = "Pods/Target Support Files/Pods-MapboxGeocoder/Pods-MapboxGeocoder.debug.xcconfig"; sourceTree = "<group>"; };
103101
DA210BAA1CB4BE73008088FD /* ForwardGeocodingTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ForwardGeocodingTests.swift; sourceTree = "<group>"; };
104102
DA210BAC1CB4BFF7008088FD /* forward_valid.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = forward_valid.json; sourceTree = "<group>"; };
105103
DA210BAE1CB4C5A7008088FD /* forward_invalid.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = forward_invalid.json; sourceTree = "<group>"; };
@@ -129,7 +127,6 @@
129127
DDF1E84E1BD6F7BA00C40C78 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
130128
DDF1E85A1BD70E4C00C40C78 /* reverse_invalid.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = reverse_invalid.json; sourceTree = "<group>"; };
131129
DDF1E85B1BD70E4C00C40C78 /* reverse_valid.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = reverse_valid.json; sourceTree = "<group>"; };
132-
FEF1C362A84DCF91463C3181 /* Pods-Unit Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Unit Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-Unit Tests/Pods-Unit Tests.release.xcconfig"; sourceTree = "<group>"; };
133130
/* End PBXFileReference section */
134131

135132
/* Begin PBXFrameworksBuildPhase section */
@@ -138,7 +135,6 @@
138135
buildActionMask = 2147483647;
139136
files = (
140137
DDC2471819A1C3B40054B0C0 /* MapboxGeocoder.framework in Frameworks */,
141-
9FB47CA319B32DD7142B5830 /* Pods.framework in Frameworks */,
142138
);
143139
runOnlyForDeploymentPostprocessing = 0;
144140
};
@@ -147,6 +143,7 @@
147143
buildActionMask = 2147483647;
148144
files = (
149145
DA2E03F91CB0FFF700D1269A /* RequestKit.framework in Frameworks */,
146+
12F407DDE8B7F17A70A9EC6F /* Pods_MapboxGeocoder.framework in Frameworks */,
150147
);
151148
runOnlyForDeploymentPostprocessing = 0;
152149
};
@@ -172,12 +169,10 @@
172169
35099EC49328A9D78984B007 /* Pods */ = {
173170
isa = PBXGroup;
174171
children = (
175-
045C1E17B01F46F0A4474B78 /* Pods-Unit Tests.debug.xcconfig */,
176-
FEF1C362A84DCF91463C3181 /* Pods-Unit Tests.release.xcconfig */,
177-
A7FEE3C3AC9D553F9763CB06 /* Pods.debug.xcconfig */,
178-
CC09570CD1A6D11014400590 /* Pods.release.xcconfig */,
179172
17AE996AFE6CDB18135D3ABA /* Pods-MapboxGeocoderTests.debug.xcconfig */,
180173
53A4FB553E5C07CD9CE68E00 /* Pods-MapboxGeocoderTests.release.xcconfig */,
174+
B4B7718C3CC6CB35C1916D3E /* Pods-MapboxGeocoder.debug.xcconfig */,
175+
6B55078E561746475518C5B0 /* Pods-MapboxGeocoder.release.xcconfig */,
181176
);
182177
name = Pods;
183178
sourceTree = "<group>";
@@ -186,9 +181,8 @@
186181
isa = PBXGroup;
187182
children = (
188183
DA2E03F81CB0FFF700D1269A /* RequestKit.framework */,
189-
D9281D748078BEB61AACF246 /* Pods_Unit_Tests.framework */,
190-
6953F60F050AE274E006CB85 /* Pods.framework */,
191184
9CD6EA86BBE0D7DE16654CB4 /* Pods_MapboxGeocoderTests.framework */,
185+
76927FB33641E3D7F2ED1B2E /* Pods_MapboxGeocoder.framework */,
192186
);
193187
name = Frameworks;
194188
sourceTree = "<group>";
@@ -328,13 +322,10 @@
328322
isa = PBXNativeTarget;
329323
buildConfigurationList = DD342B6C19A140EE00219F77 /* Build configuration list for PBXNativeTarget "Example (Swift)" */;
330324
buildPhases = (
331-
E03AB5375E2A0105D7C52F4C /* Check Pods Manifest.lock */,
332325
DD342B4C19A140EE00219F77 /* Sources */,
333326
DD342B4D19A140EE00219F77 /* Frameworks */,
334327
DD342B4E19A140EE00219F77 /* Resources */,
335328
DDC2471919A1C3B40054B0C0 /* Embed Frameworks */,
336-
75F39693BBF5C90FFDC01998 /* Embed Pods Frameworks */,
337-
E701C4F0292AE0B9460ADB36 /* Copy Pods Resources */,
338329
);
339330
buildRules = (
340331
);
@@ -350,10 +341,12 @@
350341
isa = PBXNativeTarget;
351342
buildConfigurationList = DDC2471D19A1C3B40054B0C0 /* Build configuration list for PBXNativeTarget "MapboxGeocoder" */;
352343
buildPhases = (
344+
3887C55B5640373246216A27 /* Check Pods Manifest.lock */,
353345
DDC246FF19A1C3B40054B0C0 /* Sources */,
354346
DDC2470019A1C3B40054B0C0 /* Frameworks */,
355347
DDC2470119A1C3B40054B0C0 /* Headers */,
356348
DDC2470219A1C3B40054B0C0 /* Resources */,
349+
4A3AAF9E067CC264E7F8A998 /* Copy Pods Resources */,
357350
);
358351
buildRules = (
359352
);
@@ -517,64 +510,49 @@
517510
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MapboxGeocoderTests/Pods-MapboxGeocoderTests-resources.sh\"\n";
518511
showEnvVarsInLog = 0;
519512
};
520-
75F39693BBF5C90FFDC01998 /* Embed Pods Frameworks */ = {
513+
3887C55B5640373246216A27 /* Check Pods Manifest.lock */ = {
521514
isa = PBXShellScriptBuildPhase;
522515
buildActionMask = 2147483647;
523516
files = (
524517
);
525518
inputPaths = (
526519
);
527-
name = "Embed Pods Frameworks";
528-
outputPaths = (
529-
);
530-
runOnlyForDeploymentPostprocessing = 0;
531-
shellPath = /bin/sh;
532-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-frameworks.sh\"\n";
533-
showEnvVarsInLog = 0;
534-
};
535-
CD3F1CAEDE243BEE7EC3EFEF /* Embed Pods Frameworks */ = {
536-
isa = PBXShellScriptBuildPhase;
537-
buildActionMask = 2147483647;
538-
files = (
539-
);
540-
inputPaths = (
541-
);
542-
name = "Embed Pods Frameworks";
520+
name = "Check Pods Manifest.lock";
543521
outputPaths = (
544522
);
545523
runOnlyForDeploymentPostprocessing = 0;
546524
shellPath = /bin/sh;
547-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MapboxGeocoderTests/Pods-MapboxGeocoderTests-frameworks.sh\"\n";
525+
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";
548526
showEnvVarsInLog = 0;
549527
};
550-
E03AB5375E2A0105D7C52F4C /* Check Pods Manifest.lock */ = {
528+
4A3AAF9E067CC264E7F8A998 /* Copy Pods Resources */ = {
551529
isa = PBXShellScriptBuildPhase;
552530
buildActionMask = 2147483647;
553531
files = (
554532
);
555533
inputPaths = (
556534
);
557-
name = "Check Pods Manifest.lock";
535+
name = "Copy Pods Resources";
558536
outputPaths = (
559537
);
560538
runOnlyForDeploymentPostprocessing = 0;
561539
shellPath = /bin/sh;
562-
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";
540+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MapboxGeocoder/Pods-MapboxGeocoder-resources.sh\"\n";
563541
showEnvVarsInLog = 0;
564542
};
565-
E701C4F0292AE0B9460ADB36 /* Copy Pods Resources */ = {
543+
CD3F1CAEDE243BEE7EC3EFEF /* Embed Pods Frameworks */ = {
566544
isa = PBXShellScriptBuildPhase;
567545
buildActionMask = 2147483647;
568546
files = (
569547
);
570548
inputPaths = (
571549
);
572-
name = "Copy Pods Resources";
550+
name = "Embed Pods Frameworks";
573551
outputPaths = (
574552
);
575553
runOnlyForDeploymentPostprocessing = 0;
576554
shellPath = /bin/sh;
577-
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods/Pods-resources.sh\"\n";
555+
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MapboxGeocoderTests/Pods-MapboxGeocoderTests-frameworks.sh\"\n";
578556
showEnvVarsInLog = 0;
579557
};
580558
/* End PBXShellScriptBuildPhase section */
@@ -730,7 +708,6 @@
730708
};
731709
DD342B6D19A140EE00219F77 /* Debug */ = {
732710
isa = XCBuildConfiguration;
733-
baseConfigurationReference = A7FEE3C3AC9D553F9763CB06 /* Pods.debug.xcconfig */;
734711
buildSettings = {
735712
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
736713
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -743,7 +720,6 @@
743720
};
744721
DD342B6E19A140EE00219F77 /* Release */ = {
745722
isa = XCBuildConfiguration;
746-
baseConfigurationReference = CC09570CD1A6D11014400590 /* Pods.release.xcconfig */;
747723
buildSettings = {
748724
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
749725
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
@@ -756,6 +732,7 @@
756732
};
757733
DDC2471E19A1C3B40054B0C0 /* Debug */ = {
758734
isa = XCBuildConfiguration;
735+
baseConfigurationReference = B4B7718C3CC6CB35C1916D3E /* Pods-MapboxGeocoder.debug.xcconfig */;
759736
buildSettings = {
760737
CURRENT_PROJECT_VERSION = 1;
761738
DEFINES_MODULE = YES;
@@ -779,6 +756,7 @@
779756
};
780757
DDC2471F19A1C3B40054B0C0 /* Release */ = {
781758
isa = XCBuildConfiguration;
759+
baseConfigurationReference = 6B55078E561746475518C5B0 /* Pods-MapboxGeocoder.release.xcconfig */;
782760
buildSettings = {
783761
CURRENT_PROJECT_VERSION = 1;
784762
DEFINES_MODULE = YES;

Podfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
platform :ios, '8.0'
22
use_frameworks!
33

4-
pod 'NBNRequestKit', :git => 'https://github.com/1ec5/RequestKit.git', :branch => 'mapbox-podspec'
4+
def shared_pods
5+
pod 'NBNRequestKit', :git => 'https://github.com/1ec5/RequestKit.git', :branch => 'mapbox-podspec'
6+
end
7+
8+
target 'MapboxGeocoder' do
9+
shared_pods
10+
end
511

612
target 'MapboxGeocoderTests' do
713
pod 'Nocilla'
14+
shared_pods
815
end

0 commit comments

Comments
 (0)