Skip to content
This repository was archived by the owner on Sep 15, 2019. It is now read-only.

Commit 28dc99c

Browse files
author
Satinder Singh
committed
[FEATURE] Support Carthage
- Support Carthage by creating framework - Updated README with Carthage installation guide & badge
1 parent c94e762 commit 28dc99c

File tree

7 files changed

+379
-26
lines changed

7 files changed

+379
-26
lines changed

Example/SnapLayout.xcodeproj/project.pbxproj

+188-2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
0530113E1ED26EE100B20287 /* SnapLayout.h in Headers */ = {isa = PBXBuildFile; fileRef = 0530113C1ED26EE100B20287 /* SnapLayout.h */; settings = {ATTRIBUTES = (Public, ); }; };
11+
053011411ED26EE100B20287 /* SnapLayout.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0530113A1ED26EE100B20287 /* SnapLayout.framework */; };
12+
053011421ED26EE100B20287 /* SnapLayout.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 0530113A1ED26EE100B20287 /* SnapLayout.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
13+
0530114B1ED26F4300B20287 /* SnapConfig.swift in Sources */ = {isa = PBXBuildFile; fileRef = 053011471ED26F4300B20287 /* SnapConfig.swift */; };
14+
0530114C1ED26F4300B20287 /* Aliases.swift in Sources */ = {isa = PBXBuildFile; fileRef = 053011481ED26F4300B20287 /* Aliases.swift */; };
15+
0530114D1ED26F4300B20287 /* SnapManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 053011491ED26F4300B20287 /* SnapManager.swift */; };
16+
0530114E1ED26F4300B20287 /* SnapLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0530114A1ED26F4300B20287 /* SnapLayout.swift */; };
1017
053493EC1EBD486B00D9F89D /* SizeTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 053493EB1EBD486B00D9F89D /* SizeTableViewCell.swift */; };
1118
053493F11EBD4E7300D9F89D /* AdjacentVerticalTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 053493F01EBD4E7300D9F89D /* AdjacentVerticalTableViewCell.swift */; };
1219
0543392C1EA1FB1100044728 /* BaseTestCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0543392B1EA1FB1100044728 /* BaseTestCase.swift */; };
@@ -34,6 +41,13 @@
3441
/* End PBXBuildFile section */
3542

3643
/* Begin PBXContainerItemProxy section */
44+
0530113F1ED26EE100B20287 /* PBXContainerItemProxy */ = {
45+
isa = PBXContainerItemProxy;
46+
containerPortal = 607FACC81AFB9204008FA782 /* Project object */;
47+
proxyType = 1;
48+
remoteGlobalIDString = 053011391ED26EE100B20287;
49+
remoteInfo = SnapLayout;
50+
};
3751
05D8B35C1E8E1D7C00E5819A /* PBXContainerItemProxy */ = {
3852
isa = PBXContainerItemProxy;
3953
containerPortal = 607FACC81AFB9204008FA782 /* Project object */;
@@ -43,7 +57,28 @@
4357
};
4458
/* End PBXContainerItemProxy section */
4559

60+
/* Begin PBXCopyFilesBuildPhase section */
61+
053011461ED26EE100B20287 /* Embed Frameworks */ = {
62+
isa = PBXCopyFilesBuildPhase;
63+
buildActionMask = 2147483647;
64+
dstPath = "";
65+
dstSubfolderSpec = 10;
66+
files = (
67+
053011421ED26EE100B20287 /* SnapLayout.framework in Embed Frameworks */,
68+
);
69+
name = "Embed Frameworks";
70+
runOnlyForDeploymentPostprocessing = 0;
71+
};
72+
/* End PBXCopyFilesBuildPhase section */
73+
4674
/* Begin PBXFileReference section */
75+
0530113A1ED26EE100B20287 /* SnapLayout.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SnapLayout.framework; sourceTree = BUILT_PRODUCTS_DIR; };
76+
0530113C1ED26EE100B20287 /* SnapLayout.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SnapLayout.h; sourceTree = "<group>"; };
77+
0530113D1ED26EE100B20287 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
78+
053011471ED26F4300B20287 /* SnapConfig.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SnapConfig.swift; path = ../../SnapLayout/Classes/SnapConfig.swift; sourceTree = "<group>"; };
79+
053011481ED26F4300B20287 /* Aliases.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Aliases.swift; path = ../../SnapLayout/Classes/Aliases.swift; sourceTree = "<group>"; };
80+
053011491ED26F4300B20287 /* SnapManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SnapManager.swift; path = ../../SnapLayout/Classes/SnapManager.swift; sourceTree = "<group>"; };
81+
0530114A1ED26F4300B20287 /* SnapLayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = SnapLayout.swift; path = ../../SnapLayout/Classes/SnapLayout.swift; sourceTree = "<group>"; };
4782
053493EB1EBD486B00D9F89D /* SizeTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SizeTableViewCell.swift; sourceTree = "<group>"; };
4883
053493F01EBD4E7300D9F89D /* AdjacentVerticalTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AdjacentVerticalTableViewCell.swift; sourceTree = "<group>"; };
4984
0543392B1EA1FB1100044728 /* BaseTestCase.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BaseTestCase.swift; sourceTree = "<group>"; };
@@ -92,6 +127,13 @@
92127
/* End PBXFileReference section */
93128

94129
/* Begin PBXFrameworksBuildPhase section */
130+
053011361ED26EE100B20287 /* Frameworks */ = {
131+
isa = PBXFrameworksBuildPhase;
132+
buildActionMask = 2147483647;
133+
files = (
134+
);
135+
runOnlyForDeploymentPostprocessing = 0;
136+
};
95137
055B806C1EBEB04E00F84772 /* Frameworks */ = {
96138
isa = PBXFrameworksBuildPhase;
97139
buildActionMask = 2147483647;
@@ -112,13 +154,27 @@
112154
isa = PBXFrameworksBuildPhase;
113155
buildActionMask = 2147483647;
114156
files = (
157+
053011411ED26EE100B20287 /* SnapLayout.framework in Frameworks */,
115158
EC11E95A9641C8BBDA2130B2 /* Pods_Example_iOS.framework in Frameworks */,
116159
);
117160
runOnlyForDeploymentPostprocessing = 0;
118161
};
119162
/* End PBXFrameworksBuildPhase section */
120163

121164
/* Begin PBXGroup section */
165+
0530113B1ED26EE100B20287 /* SnapLayout */ = {
166+
isa = PBXGroup;
167+
children = (
168+
053011471ED26F4300B20287 /* SnapConfig.swift */,
169+
053011481ED26F4300B20287 /* Aliases.swift */,
170+
053011491ED26F4300B20287 /* SnapManager.swift */,
171+
0530114A1ED26F4300B20287 /* SnapLayout.swift */,
172+
0530113C1ED26EE100B20287 /* SnapLayout.h */,
173+
0530113D1ED26EE100B20287 /* Info.plist */,
174+
);
175+
path = SnapLayout;
176+
sourceTree = "<group>";
177+
};
122178
053493ED1EBD4A1700D9F89D /* Cells */ = {
123179
isa = PBXGroup;
124180
children = (
@@ -215,6 +271,7 @@
215271
607FACD21AFB9204008FA782 /* Example-iOS */,
216272
055B80701EBEB04E00F84772 /* Example-MacOS */,
217273
05D8B3581E8E1D7C00E5819A /* Tests */,
274+
0530113B1ED26EE100B20287 /* SnapLayout */,
218275
607FACD11AFB9204008FA782 /* Products */,
219276
55763BA43100368A27E4A4CD /* Pods */,
220277
B26703EFE7205943E8D7FD25 /* Frameworks */,
@@ -227,6 +284,7 @@
227284
607FACD01AFB9204008FA782 /* Example-iOS.app */,
228285
05D8B3571E8E1D7C00E5819A /* SnapLayout_ExampleTests.xctest */,
229286
055B806F1EBEB04E00F84772 /* Example-MacOS.app */,
287+
0530113A1ED26EE100B20287 /* SnapLayout.framework */,
230288
);
231289
name = Products;
232290
sourceTree = "<group>";
@@ -279,7 +337,36 @@
279337
};
280338
/* End PBXGroup section */
281339

340+
/* Begin PBXHeadersBuildPhase section */
341+
053011371ED26EE100B20287 /* Headers */ = {
342+
isa = PBXHeadersBuildPhase;
343+
buildActionMask = 2147483647;
344+
files = (
345+
0530113E1ED26EE100B20287 /* SnapLayout.h in Headers */,
346+
);
347+
runOnlyForDeploymentPostprocessing = 0;
348+
};
349+
/* End PBXHeadersBuildPhase section */
350+
282351
/* Begin PBXNativeTarget section */
352+
053011391ED26EE100B20287 /* SnapLayout */ = {
353+
isa = PBXNativeTarget;
354+
buildConfigurationList = 053011451ED26EE100B20287 /* Build configuration list for PBXNativeTarget "SnapLayout" */;
355+
buildPhases = (
356+
053011351ED26EE100B20287 /* Sources */,
357+
053011361ED26EE100B20287 /* Frameworks */,
358+
053011371ED26EE100B20287 /* Headers */,
359+
053011381ED26EE100B20287 /* Resources */,
360+
);
361+
buildRules = (
362+
);
363+
dependencies = (
364+
);
365+
name = SnapLayout;
366+
productName = SnapLayout;
367+
productReference = 0530113A1ED26EE100B20287 /* SnapLayout.framework */;
368+
productType = "com.apple.product-type.framework";
369+
};
283370
055B806E1EBEB04E00F84772 /* Example-MacOS */ = {
284371
isa = PBXNativeTarget;
285372
buildConfigurationList = 055B807D1EBEB04E00F84772 /* Build configuration list for PBXNativeTarget "Example-MacOS" */;
@@ -331,10 +418,12 @@
331418
607FACCE1AFB9204008FA782 /* Resources */,
332419
F13134504B415DA0B838F3DB /* [CP] Embed Pods Frameworks */,
333420
DEDF3BE6CDC9F06179AFDAA6 /* [CP] Copy Pods Resources */,
421+
053011461ED26EE100B20287 /* Embed Frameworks */,
334422
);
335423
buildRules = (
336424
);
337425
dependencies = (
426+
053011401ED26EE100B20287 /* PBXTargetDependency */,
338427
);
339428
name = "Example-iOS";
340429
productName = SnapLayout;
@@ -351,6 +440,11 @@
351440
LastUpgradeCheck = 0820;
352441
ORGANIZATIONNAME = CocoaPods;
353442
TargetAttributes = {
443+
053011391ED26EE100B20287 = {
444+
CreatedOnToolsVersion = 8.3.2;
445+
LastSwiftMigration = 0830;
446+
ProvisioningStyle = Automatic;
447+
};
354448
055B806E1EBEB04E00F84772 = {
355449
CreatedOnToolsVersion = 8.3.2;
356450
ProvisioningStyle = Automatic;
@@ -382,11 +476,19 @@
382476
607FACCF1AFB9204008FA782 /* Example-iOS */,
383477
055B806E1EBEB04E00F84772 /* Example-MacOS */,
384478
05D8B3561E8E1D7C00E5819A /* SnapLayout_ExampleTests */,
479+
053011391ED26EE100B20287 /* SnapLayout */,
385480
);
386481
};
387482
/* End PBXProject section */
388483

389484
/* Begin PBXResourcesBuildPhase section */
485+
053011381ED26EE100B20287 /* Resources */ = {
486+
isa = PBXResourcesBuildPhase;
487+
buildActionMask = 2147483647;
488+
files = (
489+
);
490+
runOnlyForDeploymentPostprocessing = 0;
491+
};
390492
055B806D1EBEB04E00F84772 /* Resources */ = {
391493
isa = PBXResourcesBuildPhase;
392494
buildActionMask = 2147483647;
@@ -553,6 +655,17 @@
553655
/* End PBXShellScriptBuildPhase section */
554656

555657
/* Begin PBXSourcesBuildPhase section */
658+
053011351ED26EE100B20287 /* Sources */ = {
659+
isa = PBXSourcesBuildPhase;
660+
buildActionMask = 2147483647;
661+
files = (
662+
0530114C1ED26F4300B20287 /* Aliases.swift in Sources */,
663+
0530114D1ED26F4300B20287 /* SnapManager.swift in Sources */,
664+
0530114B1ED26F4300B20287 /* SnapConfig.swift in Sources */,
665+
0530114E1ED26F4300B20287 /* SnapLayout.swift in Sources */,
666+
);
667+
runOnlyForDeploymentPostprocessing = 0;
668+
};
556669
055B806B1EBEB04E00F84772 /* Sources */ = {
557670
isa = PBXSourcesBuildPhase;
558671
buildActionMask = 2147483647;
@@ -594,6 +707,11 @@
594707
/* End PBXSourcesBuildPhase section */
595708

596709
/* Begin PBXTargetDependency section */
710+
053011401ED26EE100B20287 /* PBXTargetDependency */ = {
711+
isa = PBXTargetDependency;
712+
target = 053011391ED26EE100B20287 /* SnapLayout */;
713+
targetProxy = 0530113F1ED26EE100B20287 /* PBXContainerItemProxy */;
714+
};
597715
05D8B35D1E8E1D7C00E5819A /* PBXTargetDependency */ = {
598716
isa = PBXTargetDependency;
599717
target = 607FACCF1AFB9204008FA782 /* Example-iOS */;
@@ -621,6 +739,63 @@
621739
/* End PBXVariantGroup section */
622740

623741
/* Begin XCBuildConfiguration section */
742+
053011431ED26EE100B20287 /* Debug */ = {
743+
isa = XCBuildConfiguration;
744+
buildSettings = {
745+
CLANG_ANALYZER_NONNULL = YES;
746+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
747+
CLANG_ENABLE_MODULES = YES;
748+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
749+
CODE_SIGN_IDENTITY = "";
750+
CURRENT_PROJECT_VERSION = 1;
751+
DEBUG_INFORMATION_FORMAT = dwarf;
752+
DEFINES_MODULE = YES;
753+
DYLIB_COMPATIBILITY_VERSION = 1;
754+
DYLIB_CURRENT_VERSION = 1;
755+
DYLIB_INSTALL_NAME_BASE = "@rpath";
756+
INFOPLIST_FILE = SnapLayout/Info.plist;
757+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
758+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
759+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
760+
PRODUCT_BUNDLE_IDENTIFIER = SS.SnapLayout;
761+
PRODUCT_NAME = "$(TARGET_NAME)";
762+
SKIP_INSTALL = YES;
763+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
764+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
765+
SWIFT_VERSION = 3.0;
766+
TARGETED_DEVICE_FAMILY = "1,2";
767+
VERSIONING_SYSTEM = "apple-generic";
768+
VERSION_INFO_PREFIX = "";
769+
};
770+
name = Debug;
771+
};
772+
053011441ED26EE100B20287 /* Release */ = {
773+
isa = XCBuildConfiguration;
774+
buildSettings = {
775+
CLANG_ANALYZER_NONNULL = YES;
776+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
777+
CLANG_ENABLE_MODULES = YES;
778+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
779+
CODE_SIGN_IDENTITY = "";
780+
CURRENT_PROJECT_VERSION = 1;
781+
DEFINES_MODULE = YES;
782+
DYLIB_COMPATIBILITY_VERSION = 1;
783+
DYLIB_CURRENT_VERSION = 1;
784+
DYLIB_INSTALL_NAME_BASE = "@rpath";
785+
INFOPLIST_FILE = SnapLayout/Info.plist;
786+
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
787+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
788+
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
789+
PRODUCT_BUNDLE_IDENTIFIER = SS.SnapLayout;
790+
PRODUCT_NAME = "$(TARGET_NAME)";
791+
SKIP_INSTALL = YES;
792+
SWIFT_VERSION = 3.0;
793+
TARGETED_DEVICE_FAMILY = "1,2";
794+
VERSIONING_SYSTEM = "apple-generic";
795+
VERSION_INFO_PREFIX = "";
796+
};
797+
name = Release;
798+
};
624799
055B807B1EBEB04E00F84772 /* Debug */ = {
625800
isa = XCBuildConfiguration;
626801
baseConfigurationReference = 6F3C369BE9ACE7DAF6AEBE9D /* Pods-Example-MacOS.debug.xcconfig */;
@@ -634,7 +809,7 @@
634809
DEBUG_INFORMATION_FORMAT = dwarf;
635810
INFOPLIST_FILE = "Example-Mac/Info.plist";
636811
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
637-
MACOSX_DEPLOYMENT_TARGET = 10.12;
812+
MACOSX_DEPLOYMENT_TARGET = 10.11;
638813
PRODUCT_BUNDLE_IDENTIFIER = "SS.Example-Mac";
639814
PRODUCT_NAME = "$(TARGET_NAME)";
640815
SDKROOT = macosx;
@@ -655,7 +830,7 @@
655830
COMBINE_HIDPI_IMAGES = YES;
656831
INFOPLIST_FILE = "Example-Mac/Info.plist";
657832
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
658-
MACOSX_DEPLOYMENT_TARGET = 10.12;
833+
MACOSX_DEPLOYMENT_TARGET = 10.11;
659834
PRODUCT_BUNDLE_IDENTIFIER = "SS.Example-Mac";
660835
PRODUCT_NAME = "$(TARGET_NAME)";
661836
SDKROOT = macosx;
@@ -798,6 +973,7 @@
798973
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
799974
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
800975
INFOPLIST_FILE = SnapLayout/Info.plist;
976+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
801977
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
802978
MODULE_NAME = ExampleApp;
803979
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
@@ -814,6 +990,7 @@
814990
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
815991
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
816992
INFOPLIST_FILE = SnapLayout/Info.plist;
993+
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
817994
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
818995
MODULE_NAME = ExampleApp;
819996
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
@@ -825,6 +1002,15 @@
8251002
/* End XCBuildConfiguration section */
8261003

8271004
/* Begin XCConfigurationList section */
1005+
053011451ED26EE100B20287 /* Build configuration list for PBXNativeTarget "SnapLayout" */ = {
1006+
isa = XCConfigurationList;
1007+
buildConfigurations = (
1008+
053011431ED26EE100B20287 /* Debug */,
1009+
053011441ED26EE100B20287 /* Release */,
1010+
);
1011+
defaultConfigurationIsVisible = 0;
1012+
defaultConfigurationName = Release;
1013+
};
8281014
055B807D1EBEB04E00F84772 /* Build configuration list for PBXNativeTarget "Example-MacOS" */ = {
8291015
isa = XCConfigurationList;
8301016
buildConfigurations = (

0 commit comments

Comments
 (0)