我在 macOS Sierra 上运行 Cocoapods 1.1.1 并使用 Xcode 7.3.1
我已经在 textedit 中使用以下文本以纯格式创建 Podfile:
platform :ios, ‘9.3’
project ‘cd/ls/Desktop/rexpense-ios-rexpenseiOS-Rodrigo/Rexpense/Rexpense/Rexpense.xcodeproj
def common_pods
pod 'AFNetworking', '~> 2.6.1'
pod 'MagicalRecord', '~> 2.3'
pod 'SVProgressHUD', '~> 1.1'
pod 'SDWebImage', '~> 3.7.3'
pod 'Rollbar', '~> 0.1.5'
pod 'ABStaticTableViewController', '~> 1.1'
pod 'GoogleAnalytics', '~> 3.13'
end
target 'Rexpense' do
common_pods
end
我得到以下错误语法:
[!] Invalid `Podfile` file: syntax error, unexpected tCONSTANT, expecting end-of-input
pod 'AFNetworking', '~> 2.6.1'
^.
# from /Users/rxasei/Podfile:23
# -------------------------------------------
# def common_pods
> pod 'AFNetworking', '~> 2.6.1'
# pod 'MagicalRecord', '~> 2.3'
# -------------------------------------------
[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.