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