Reputation: 125
I'm having an error that only happens to me. My colleagues don't get the same error and we share the same code. I'm trying to pod install but I'm getting this error:
Invalid
Podfile
file: syntax error, unexpected end-of-input, expecting keyword_end.
My pod version is: 1.5.3
Here is the link to my pod file: https://gist.github.com/brunocuratio/6240bcaf69adcfae5c9026086b466cb7
Upvotes: 5
Views: 19650
Reputation: 1
Just delete the Podfile and build again. It should create a new one without any issues.
Upvotes: -2
Reputation: 611
When I had this error
[!] Invalid
Podfile file: syntax error, unexpected end, expecting end-of-input.
What worked for me was
pod install
on the terminal and the error had gone.May work for some. Good luck !!
Upvotes: 0
Reputation: 1180
The first two if
statements in the post_install
hook seem to have their end
s missing. This should work:
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == 'NMessenger'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
if target.name == 'Kingfisher'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
if target.name == 'PopupDialog'
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '4.2'
end
end
end
end
Upvotes: 4