这是我的Podfile
platform :ios, '6.0'
pod 'RestKit', '0.21.0’, :inhibit_warnings => true
pod 'MBProgressHUD’, ‘0.8’
pod 'Reachability', '3.1.1', :inhibit_warnings => true
pod 'SDWebImage', '3.4'
pod 'Facebook-iOS-SDK', '3.12'
我在终端进入的错误就像
Invalid `Podfile` file: /Users/User/Desktop/UserFolder/Projects/hott-
ios/Podfile:3: syntax
error, unexpected tCONSTANT, expecting end-of-input
pod 'MBProgressHUD’, ‘~>0.8’, :inhibit_warnings => true
^. Updating CocoaPods might fix the issue.
答案 0 :(得分:3)
检查单引号。我算了三个错误的引号。
您的podfile应如下所示(请注意StackOverflow上的语法高亮显示):
platform :ios, '6.0'
pod 'RestKit', '0.21.0', :inhibit_warnings => true
pod 'MBProgressHUD', '0.8'
pod 'Reachability', '3.1.1', :inhibit_warnings => true
pod 'SDWebImage', '3.4'
pod 'Facebook-iOS-SDK', '3.12'