macOS Sierra で Cocoapods 1.1.1 を実行しており、Xcode 7.3.1 を使用しています
次のテキストを使用して、テキスト編集で 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.