2016-05-01 9 views
1

Когда я типа вПроблемы с CocoaPods

$ pod install 

в терминале я получаю эту ошибку:

[!] Invalid `Podfile` file: unterminated string meets 

end of file. Updating CocoaPods might fix the issue. 

Это мой podfile:

# Uncomment this line to define a global platform for your project 
# platform :ios, "8.0" 
Uncomment this line if you're using Swift 
# use_frameworks! 

target "uncle" do 
pod "SFFocusViewLayout", ">= 3.0" 
end 

target "uncleTests" do 

end 

Есть ли что-нибудь не так?

+1

Отсутствует символ # до строки «Раскомментировать эту строку ...»? –

+1

Вы должны раскомментировать 'use_frameworks!', А не строку, объясняющую ее раскомментирование. –

ответ

1

Обновить файл стручок в

# Uncomment this line to define a global platform for your project 
# platform :ios, "8.0" 
# Uncomment this line if you're using Swift 
    use_frameworks! 

target "uncle" do 
    pod "SFFocusViewLayout", ">= 3.0" 
end 

target "uncleTests" do 

end 

# are comments in pod file and you have commented the use Framework part

1

Комментарий вводит в заблуждение, это должно быть "раскомментировать строку ниже"

Делают это так:

# Uncomment this line to define a global platform for your project 
# platform :ios, "8.0" 
# Uncomment this line if you're using Swift 
use_frameworks! 
1

как это:

# Uncomment this line to define a global platform for your project 
# platform :ios, "8.0" 
# Uncomment this line if you're using Swift 
use_frameworks! 
Смежные вопросы