2016-05-01 14 views
1

Wenn ich inÄrger mit CocoaPods

$ pod install 

im Terminal eingeben bekomme ich diesen Fehler:

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

end of file. Updating CocoaPods might fix the issue. 

Das ist mein 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 

Gibt es etwas falsch gemacht?

+1

Fehlendes # Symbol vor "Kommentarzeile ..."? –

+1

Sie sollten 'use_frameworks!' Auskommentieren, nicht die Zeile, die das Kommentarzeichen entfernt. –

Antwort

1

Aktualisieren Sie Ihre pod-Datei

# 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

Der Kommentar ist irreführend, sollte es "Kommentar- der Zeile unter"

Tun Sie es so aussehen:

# 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

wie dies:

# 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!