Skip to content

Commit 7f5a437

Browse files
committed
add Carthage support
1 parent 70a5f72 commit 7f5a437

File tree

2 files changed

+143
-2
lines changed

2 files changed

+143
-2
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
LastUpgradeVersion = "0830"
4+
version = "1.3">
5+
<BuildAction
6+
parallelizeBuildables = "YES"
7+
buildImplicitDependencies = "YES">
8+
<BuildActionEntries>
9+
<BuildActionEntry
10+
buildForTesting = "YES"
11+
buildForRunning = "YES"
12+
buildForProfiling = "YES"
13+
buildForArchiving = "YES"
14+
buildForAnalyzing = "YES">
15+
<BuildableReference
16+
BuildableIdentifier = "primary"
17+
BlueprintIdentifier = "7313FF411EEFD98C003ED487"
18+
BuildableName = "AttributedStringWrapper.framework"
19+
BlueprintName = "AttributedStringWrapper"
20+
ReferencedContainer = "container:AttributedStringWrapper.xcodeproj">
21+
</BuildableReference>
22+
</BuildActionEntry>
23+
</BuildActionEntries>
24+
</BuildAction>
25+
<TestAction
26+
buildConfiguration = "Debug"
27+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29+
shouldUseLaunchSchemeArgsEnv = "YES">
30+
<Testables>
31+
<TestableReference
32+
skipped = "NO">
33+
<BuildableReference
34+
BuildableIdentifier = "primary"
35+
BlueprintIdentifier = "7313FF4A1EEFD98C003ED487"
36+
BuildableName = "AttributedStringWrapperTests.xctest"
37+
BlueprintName = "AttributedStringWrapperTests"
38+
ReferencedContainer = "container:AttributedStringWrapper.xcodeproj">
39+
</BuildableReference>
40+
</TestableReference>
41+
</Testables>
42+
<MacroExpansion>
43+
<BuildableReference
44+
BuildableIdentifier = "primary"
45+
BlueprintIdentifier = "7313FF411EEFD98C003ED487"
46+
BuildableName = "AttributedStringWrapper.framework"
47+
BlueprintName = "AttributedStringWrapper"
48+
ReferencedContainer = "container:AttributedStringWrapper.xcodeproj">
49+
</BuildableReference>
50+
</MacroExpansion>
51+
<AdditionalOptions>
52+
</AdditionalOptions>
53+
</TestAction>
54+
<LaunchAction
55+
buildConfiguration = "Debug"
56+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
57+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
58+
launchStyle = "0"
59+
useCustomWorkingDirectory = "NO"
60+
ignoresPersistentStateOnLaunch = "NO"
61+
debugDocumentVersioning = "YES"
62+
debugServiceExtension = "internal"
63+
allowLocationSimulation = "YES">
64+
<MacroExpansion>
65+
<BuildableReference
66+
BuildableIdentifier = "primary"
67+
BlueprintIdentifier = "7313FF411EEFD98C003ED487"
68+
BuildableName = "AttributedStringWrapper.framework"
69+
BlueprintName = "AttributedStringWrapper"
70+
ReferencedContainer = "container:AttributedStringWrapper.xcodeproj">
71+
</BuildableReference>
72+
</MacroExpansion>
73+
<AdditionalOptions>
74+
</AdditionalOptions>
75+
</LaunchAction>
76+
<ProfileAction
77+
buildConfiguration = "Release"
78+
shouldUseLaunchSchemeArgsEnv = "YES"
79+
savedToolIdentifier = ""
80+
useCustomWorkingDirectory = "NO"
81+
debugDocumentVersioning = "YES">
82+
<MacroExpansion>
83+
<BuildableReference
84+
BuildableIdentifier = "primary"
85+
BlueprintIdentifier = "7313FF411EEFD98C003ED487"
86+
BuildableName = "AttributedStringWrapper.framework"
87+
BlueprintName = "AttributedStringWrapper"
88+
ReferencedContainer = "container:AttributedStringWrapper.xcodeproj">
89+
</BuildableReference>
90+
</MacroExpansion>
91+
</ProfileAction>
92+
<AnalyzeAction
93+
buildConfiguration = "Debug">
94+
</AnalyzeAction>
95+
<ArchiveAction
96+
buildConfiguration = "Release"
97+
revealArchiveInOrganizer = "YES">
98+
</ArchiveAction>
99+
</Scheme>

README.md

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
![Xcode 8.3+](https://img.shields.io/badge/Xcode-8.3%2B-blue.svg)
44
![iOS 8.0+](https://img.shields.io/badge/iOS-8.0%2B-blue.svg)
55
![Swift 3.1+](https://img.shields.io/badge/Swift-3.0%2B-orange.svg)
6-
![pod](https://img.shields.io/badge/pod-v1.0.0-brightgreen.svg)
7-
6+
[![Version](https://img.shields.io/cocoapods/v/AttributedStringWrapper.svg?style=flat)](https://cocoapods.org/pods/AttributedStringWrapper)
7+
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/loopeer/AttributedStringWrapper)
88

99

1010
**AttributedStringWrapper** is a simple packaging for NSAttributedString to make the developers easy to use 
@@ -82,6 +82,48 @@ label6.attributedText = content.toAttributed
8282

8383

8484

85+
## Installation
86+
87+
88+
### 1. CocoaPods
89+
90+
[CocoaPods](https://cocoapods.org/) is a dependency manager for Cocoa projects.
91+
92+
Specify AttributedStringWrapper into your project's Podfile:
93+
94+
95+
```ruby
96+
# source 'https://github.com/CocoaPods/Specs.git'
97+
98+
platform :ios, '8.0'
99+
use_frameworks!
100+
101+
target '<Your App Target>' do
102+
pod 'AttributedStringWrapper'
103+
end
104+
```
105+
106+
107+
Then run the following command:
108+
109+
```sh
110+
$ pod install
111+
```
112+
113+
114+
### 2. Carthage
115+
116+
[Carthage](https://github.com/Carthage/Carthage) is a simple, decentralized
117+
dependency manager for Cocoa.
118+
119+
Specify AttributedStringWrapper into your project's Carthage:
120+
121+
122+
```
123+
github "loopeer/AttributedStringWrapper" ~> 1.0.0
124+
125+
```
126+
85127

86128

87129

0 commit comments

Comments
 (0)