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

add podspec file #9

Open
wants to merge 1 commit 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
12 changes: 12 additions & 0 deletions Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
project 'SegmentedControlExample.xcodeproj'

# Uncomment the next line to define a global platform for your project
platform :ios, '8.0'

target 'SegmentedControlExample' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

pod 'SegmentedControl', :path => './'

end
19 changes: 19 additions & 0 deletions SegmentedControl.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

Pod::Spec.new do |s|

s.name = "SegmentedControl"
s.version = "0.0.7"
s.summary = "Customizable segmented control"
s.source = { :git => "https://github.com/teambition/SegmentedControl.git", :tag => s.version.to_s }
s.license = { :type => "MIT", :file => "LICENSE.md" }
s.description = <<-DESC
A highly customizable segmented control for iOS applications.
DESC

s.homepage = "https://github.com/teambition/SegmentedControl"
s.author = { "teambition" => "[email protected]" }
s.platform = :ios, "8.0"
s.source_files = "SegmentedControl/**/*.{swift}"
s.requires_arc = true

end
83 changes: 77 additions & 6 deletions SegmentedControlExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
D341EB501D1A838400677EAF /* SegmentedControl.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D341EB4F1D1A838400677EAF /* SegmentedControl.framework */; };
D341EB511D1A838400677EAF /* SegmentedControl.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = D341EB4F1D1A838400677EAF /* SegmentedControl.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
AFD070824DB8031AAC3508EB /* Pods_SegmentedControlExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E17EC84F8210A896F2772204 /* Pods_SegmentedControlExample.framework */; };
D3E3B0E31C328316003EAA6E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3E3B0E21C328316003EAA6E /* AppDelegate.swift */; };
D3E3B0E51C328316003EAA6E /* ExampleViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D3E3B0E41C328316003EAA6E /* ExampleViewController.swift */; };
D3E3B0E81C328316003EAA6E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D3E3B0E61C328316003EAA6E /* Main.storyboard */; };
Expand All @@ -22,41 +21,52 @@
dstPath = "";
dstSubfolderSpec = 10;
files = (
D341EB511D1A838400677EAF /* SegmentedControl.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
D341EB4F1D1A838400677EAF /* SegmentedControl.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; name = SegmentedControl.framework; path = "/Users/hongxin/Library/Developer/Xcode/DerivedData/SegmentedControl-fegllupftdbokageotnuxdmypufc/Build/Products/Debug-iphonesimulator/SegmentedControl.framework"; sourceTree = "<absolute>"; };
0400EB0CD3016B1EED3458F7 /* Pods-SegmentedControlExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SegmentedControlExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SegmentedControlExample/Pods-SegmentedControlExample.debug.xcconfig"; sourceTree = "<group>"; };
23BC1A68643CF65ABE2C79C9 /* Pods-SegmentedControlExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SegmentedControlExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-SegmentedControlExample/Pods-SegmentedControlExample.release.xcconfig"; sourceTree = "<group>"; };
D3E3B0DF1C328316003EAA6E /* SegmentedControlExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SegmentedControlExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
D3E3B0E21C328316003EAA6E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
D3E3B0E41C328316003EAA6E /* ExampleViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ExampleViewController.swift; sourceTree = "<group>"; };
D3E3B0E71C328316003EAA6E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
D3E3B0E91C328316003EAA6E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
D3E3B0EE1C328316003EAA6E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
E17EC84F8210A896F2772204 /* Pods_SegmentedControlExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SegmentedControlExample.framework; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
D3E3B0DC1C328316003EAA6E /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
D341EB501D1A838400677EAF /* SegmentedControl.framework in Frameworks */,
AFD070824DB8031AAC3508EB /* Pods_SegmentedControlExample.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
4AD62CD663D3483D16D85FCA /* Pods */ = {
isa = PBXGroup;
children = (
0400EB0CD3016B1EED3458F7 /* Pods-SegmentedControlExample.debug.xcconfig */,
23BC1A68643CF65ABE2C79C9 /* Pods-SegmentedControlExample.release.xcconfig */,
);
name = Pods;
sourceTree = "<group>";
};
D3E3B0D61C328316003EAA6E = {
isa = PBXGroup;
children = (
D341EB4F1D1A838400677EAF /* SegmentedControl.framework */,
D3E3B0E11C328316003EAA6E /* SegmentedControlExample */,
D3E3B0E01C328316003EAA6E /* Products */,
4AD62CD663D3483D16D85FCA /* Pods */,
FA8E170CD2B99042C093FD8C /* Frameworks */,
);
sourceTree = "<group>";
};
Expand All @@ -80,17 +90,28 @@
path = SegmentedControlExample;
sourceTree = "<group>";
};
FA8E170CD2B99042C093FD8C /* Frameworks */ = {
isa = PBXGroup;
children = (
E17EC84F8210A896F2772204 /* Pods_SegmentedControlExample.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
D3E3B0DE1C328316003EAA6E /* SegmentedControlExample */ = {
isa = PBXNativeTarget;
buildConfigurationList = D3E3B0F11C328316003EAA6E /* Build configuration list for PBXNativeTarget "SegmentedControlExample" */;
buildPhases = (
419442F0FDA4ED55C82148C7 /* [CP] Check Pods Manifest.lock */,
D3E3B0DB1C328316003EAA6E /* Sources */,
D3E3B0DC1C328316003EAA6E /* Frameworks */,
D3E3B0DD1C328316003EAA6E /* Resources */,
D341EB521D1A838400677EAF /* Embed Frameworks */,
1E08377E0337854BD630DA7B /* [CP] Embed Pods Frameworks */,
557C3072BCC0B78E6E305DBF /* [CP] Copy Pods Resources */,
);
buildRules = (
);
Expand Down Expand Up @@ -147,6 +168,54 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
1E08377E0337854BD630DA7B /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SegmentedControlExample/Pods-SegmentedControlExample-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
419442F0FDA4ED55C82148C7 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n";
showEnvVarsInLog = 0;
};
557C3072BCC0B78E6E305DBF /* [CP] Copy Pods Resources */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SegmentedControlExample/Pods-SegmentedControlExample-resources.sh\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
D3E3B0DB1C328316003EAA6E /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -261,6 +330,7 @@
};
D3E3B0F21C328316003EAA6E /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 0400EB0CD3016B1EED3458F7 /* Pods-SegmentedControlExample.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = SegmentedControlExample/Info.plist;
Expand All @@ -273,6 +343,7 @@
};
D3E3B0F31C328316003EAA6E /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 23BC1A68643CF65ABE2C79C9 /* Pods-SegmentedControlExample.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
INFOPLIST_FILE = SegmentedControlExample/Info.plist;
Expand Down