【发布时间】:2016-06-02 17:13:00
【问题描述】:
我浏览了许多指南,它们似乎都指向对 podfile 使用“link_with”命令,就像本教程一样:
https://littlebitesofcocoa.com/138-using-cocoapods-in-xcode-playgrounds
但是,当我尝试这个时,cocoapod 似乎不喜欢我的 podfile 的语法,并且会告诉我现在不支持 'link_with' 并且它似乎将游乐场文件的名称解释为 podfile。
target 'Jawn’ do
link_with 'UrlMetaData' <----- (UrlMetaData.playground)
use_frameworks!
platform :ios, '8.4'
pod 'Kanna', '~> 1.0.0'
pod 'SlackTextViewController'
pod 'M13ProgressSuite'
pod 'Alamofire', '~> 3.4'
pod 'YouTubePlayer'
workspace 'Jawn'
end
当我执行 pod install 时,我会得到以下输出:
My-iMac:MyProject USERNAME$ pod install
[!] Invalid `Podfile` file: [!] The specification of `link_with` in the Podfile is now unsupported, please use target blocks instead..
# from /Users/USERNAME/Xcode Projects/MyProject/Podfile:2
# -------------------------------------------
# target 'Jawn' do
> link_with 'UrlMetaData'
# use_frameworks!
# -------------------------------------------
【问题讨论】:
标签: xcode uitableview cocoapods swift-playground