我想在項目中安裝一個窗格。但我得到這個錯誤:
Invalid 'Podfile' file syntax error, unexpected $undefined, expecting '}'.
Podfile包含:
platform :ios, '7.0' pod 'RestKit', '0.21.0'
終端顯示如下信息:
[!] 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;}
# -------------------------------------------
我能知道是什麼的問題我的podfile?
仍然無法正常工作.. – user2885928
從您發佈的新輸出看起來,您的Podfile實際上並不是純文本文件。你應該在像Sublime Text –
@Keith這樣的編輯器中重新創建它,你提到的關於刪除第一行的提示今天非常有用。非常感謝。 – Marco