Я бегу Cocoapods 1.1.1 на MacOS Sierra и использовать Xcode 7.3.1Cocoapods Синтаксическая ошибка в Podfile
Я создать Podfile в TextEdit в простом формате с этим текстом:
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.
Не уверен, что относится к вашей проблеме, но вы должны заменить '' 'и' '' правильными одиночными или двойными кавычками. – Moritz
Вместо использования 'TextEdit' попробуйте использовать' xcode', он может работать – Gokul