You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-17Lines changed: 15 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,40 +51,38 @@ See the Contributing section below for more details.
51
51
52
52
#### CocoaPods
53
53
54
-
The easiest way to install XMPPFramework is using CocoaPods. Remember to add to the top of your `Podfile` the `use_frameworks!` line (even if you are not using swift):
54
+
The easiest way to install XMPPFramework is using CocoaPods.
55
55
56
-
This will install the whole framework with all the available extensions:
56
+
To install only the Objective-C portion of the framework:
57
57
58
58
```ruby
59
-
use_frameworks!
60
-
# 3.7 Stable Release
61
-
pod 'XMPPFramework', '~> 3.7.0'
62
-
# 4.0 Preview / Master Branch
63
-
pod 'XMPPFramework', :git => 'https://github.com/robbiehanson/XMPPFramework.git', :branch => 'master'
59
+
pod 'XMPPFramework'
60
+
```
64
61
65
-
# XMPPFramework with Swift extensions
66
-
pod 'XMPPFramework/Swift', :git => 'https://github.com/robbiehanson/XMPPFramework.git', :branch => 'master'
62
+
To use the new Swift additions:
67
63
64
+
65
+
```
66
+
use_frameworks!
67
+
pod 'XMPPFramework/Swift'
68
68
```
69
69
70
70
After `pod install` open the `.xcworkspace` and import:
71
71
72
+
```objc
73
+
@import XMPPFramework; // Objective-C
72
74
```
73
-
import XMPPFramework // swift
74
-
@import XMPPFramework; //objective-c
75
+
76
+
```swift
77
+
importXMPPFramework// Swift
75
78
```
76
79
77
80
#### Carthage
78
81
79
82
To integrate XMPPFramework into your Xcode project using Carthage, specify it in your `Cartfile`:
80
83
81
84
```
82
-
# ⚠️ Carthage support is currently experimental ⚠️
83
-
# For now, use the master branch until a Carthage-compatible
84
-
# tagged release is available.
85
-
86
-
github "robbiehanson/XMPPFramework" "master"
87
-
85
+
github "robbiehanson/XMPPFramework"
88
86
```
89
87
90
88
Run `carthage` to build the framework and drag the built `XMPPFramework.framework` into your Xcode project. If you'd like to include new features written in Swift, drag `XMPPFrameworkSwift.framework` into your project as well. You'll need to manually `import XMPPFrameworkSwift` in your headers.
0 commit comments