CocoaPods 语法错误
CocoaPods syntax error
第一次使用 Cocoapods,我一辈子都弄不明白我的语法哪里错了。我搜索了我的错误消息,关闭了智能引号,但仍然收到此错误:
[!] 无效 Podfile
文件:语法错误,意外的 tCONSTANT,期待输入结束
目标 'Pop the Question' 做
^。更新 CocoaPods 可能会解决这个问题。
这是我的播客文件
# Uncomment this line to define a global platform for your project
platform :ios, '9.2'
Uncomment this line if you're using Swift
# use_frameworks!
target 'Pop the Question' do
pod 'IQKeyboardManagerSwift'
end
target 'Pop the QuestionTests' do
end
target 'Pop the QuestionUITests' do
end
谢谢
您取消了这一行的注释:
Uncomment this line if you're using Swift
所以它应该是这样的:
#Uncomment this line to define a global platform for your project
platform :ios, '9.2'
#Uncomment this line if you're using Swift
# use_frameworks!
target 'Pop the Question' do
pod 'IQKeyboardManagerSwift'
end
target 'Pop the QuestionTests' do
end
target 'Pop the QuestionUITests' do
end
第一次使用 Cocoapods,我一辈子都弄不明白我的语法哪里错了。我搜索了我的错误消息,关闭了智能引号,但仍然收到此错误:
[!] 无效 Podfile
文件:语法错误,意外的 tCONSTANT,期待输入结束
目标 'Pop the Question' 做
^。更新 CocoaPods 可能会解决这个问题。
这是我的播客文件
# Uncomment this line to define a global platform for your project
platform :ios, '9.2'
Uncomment this line if you're using Swift
# use_frameworks!
target 'Pop the Question' do
pod 'IQKeyboardManagerSwift'
end
target 'Pop the QuestionTests' do
end
target 'Pop the QuestionUITests' do
end
谢谢
您取消了这一行的注释:
Uncomment this line if you're using Swift
所以它应该是这样的:
#Uncomment this line to define a global platform for your project
platform :ios, '9.2'
#Uncomment this line if you're using Swift
# use_frameworks!
target 'Pop the Question' do
pod 'IQKeyboardManagerSwift'
end
target 'Pop the QuestionTests' do
end
target 'Pop the QuestionUITests' do
end