繁体   English   中英

导入带有cocoapods的库

[英]Importing a library with cocoapods

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

我试图与cocoapods一起使用。我在项目库中创建了一个Podfile

这是我的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.

如何解决这些错误?

您的podfile的最后一个引号应为'而不是'

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM