Project Setup
Install dependencies
CocoaPods
For iOS only - To install dependencies into your Xcode project using CocoaPods, specify it in your Podfile:
target 'TargetName' do
# Uncomment the next line if you're using Swift
# use_frameworks!
pod 'SocketRocket', '0.5.1'
pod 'CocoaLumberjack', '~> 3.7'
pod "GCDWebServer", '~> 3.5'
pod 'CocoaAsyncSocket', '~> 7.6'
pod 'PINCache', '~> 3.0'
end
Then, run the following command:
pod install
For iOS/tvOS/macOS
target 'TargetName' do
# Uncomment the next line if you're using Swift
# use_frameworks!
pod 'SocketRocket', '0.5.1'
pod 'CocoaLumberjack', '~> 3.7'
pod "GCDWebServer", '~> 3.5'
pod 'CocoaAsyncSocket', '~> 7.6'
pod 'PINCache', '~> 3.0'
end
Carthage
Add the dependencies to the Cartfile:
github "facebook/SocketRocket" "master"
github "CocoaLumberjack/CocoaLumberjack" ~> 3.7
github "pinterest/PINCache" ~> 3.0
github "swisspol/GCDWebServer" ~> 3.5
github "robbiehanson/CocoaAsyncSocket" ~> 7.6
Then run:
carthage update --use-xcframeworks --cache-builds
This will build each one or download a pre-compiled XCFramework. On your application targets’ General settings tab, in the Frameworks, Libraries, and Embedded Content section, drag and drop each XCFramework you want to use from the Carthage/Build folder.
Last updated
Was this helpful?