CocoaPods 的问题
Trouble with CocoaPods
当我输入
$ pod install
在终端我得到这个错误:
[!] Invalid `Podfile` file: unterminated string meets
end of file. Updating CocoaPods might fix the issue.
这是我的播客文件:
# 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
有什么问题吗?
评论误导,应该是"uncomment the line below"
这样做:
# 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!
将您的 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
#
are comments in pod file and you have commented the use Framework part
像这样:
# 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!
当我输入
$ pod install
在终端我得到这个错误:
[!] Invalid `Podfile` file: unterminated string meets
end of file. Updating CocoaPods might fix the issue.
这是我的播客文件:
# 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
有什么问题吗?
评论误导,应该是"uncomment the line below"
这样做:
# 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!
将您的 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
#
are comments in pod file and you have commented the use Framework part
像这样:
# 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!