使用 cocoapods 导入库

Importing a library with cocoapods

我正在尝试在我的 ios 项目中使用这个库:https://github.com/nuclearace/Socket.IO-Client-Swift

我正在尝试使用 with cocoapods.I 在我的项目库中创建了一个 Podfile

这是我的播客文件:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!
pod 'Socket.IO-Client-Swift', '~> 2.2.2’

当我 运行 时,出现以下错误:

SyntaxError - /Users/.../Documents/SwiftSonSurum/Podfile:4: unterminated string meets end of file
[!] Oh no, an error occurred.

It appears to have originated from your Podfile at line 4.

如何修复这些错误?

您的播客文件的最后引号应该是 ' 而不是