麻烦与CocoaPods

时间:2016-05-01 18:12:08

标签: cocoapods

当我输入

  $ pod install

在终端我收到此错误:

   [!] Invalid `Podfile` file: unterminated string meets 

 end of file. Updating CocoaPods might fix the issue.

这是我的podfile:

 # Uncomment this line to define a global platform for your project
 # platform :ios, "8.0"
 Uncomment this line if you're using Swift
 # use_frameworks!

 target "uncle" do
 pod "SFFocusViewLayout", ">= 3.0"
 end

 target "uncleTests" do

 end

有什么不对吗?

3 个答案:

答案 0 :(得分:0)

该评论具有误导性,应该“取消注释以下一行”

这样做:

 # Uncomment this line to define a global platform for your project
 # platform :ios, "8.0"
 # Uncomment this line if you're using Swift
 use_frameworks!

答案 1 :(得分:0)

将您的pod文件更新为

 # Uncomment this line to define a global platform for your project
 # platform :ios, "8.0"
 # Uncomment this line if you're using Swift
  use_frameworks!

 target "uncle" do
   pod "SFFocusViewLayout", ">= 3.0"
 end

 target "uncleTests" do

 end
  

#是pod文件中的注释,您已评论使用框架部分

答案 2 :(得分:0)

像这样:

 # Uncomment this line to define a global platform for your project
 # platform :ios, "8.0"
 # Uncomment this line if you're using Swift
 use_frameworks!