I am trying to install a pod in project. But i am getting this error:
Invalid 'Podfile' file syntax error, unexpected $undefined, expecting '}'.
Podfile contains:
platform :ios, '7.0' pod 'RestKit', '0.21.0'
The terminal shows following message:
[!] Invalid `Podfile` file: compile error
/Users/work/Desktop/tg/RESTKitDemo/Podfile:1: syntax error, unexpected $undefined, expecting '}'
{\rtf1\ansi\ansicpg1252\cocoartf1265
^. Updating CocoaPods might fix the issue.
# from /Users/work/Desktop/tg/RESTKitDemo/Podfile:1
# -------------------------------------------
> {\rtf1\ansi\ansicpg1252\cocoartf1265
# {\fonttbl\f0\fmodern\fcharset0 Courier;}
# -------------------------------------------
Can i know what is the problem with my podfile?
I got error
Invalid `Podfile` file: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
pod 'MBProgressHUD'
becasue I was declaring Pod files like
pod 'SlideMenuControllerSwift',
pod 'MBProgressHUD'
pod 'SDWebImage'
there is one "," (colon mark) in above podfile name pod 'SlideMenuControllerSwift',. I just removed the colon mark. It worked.
correct way:
pod 'SlideMenuControllerSwift'
pod 'MBProgressHUD'
pod 'SDWebImage'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With