这是我的依赖关系,我想在中使用
platform :ios, '8.0'
use_frameworks!
target ‘Vanified', :exclusive => true do
pod "Vanified", :path => "../"
//Note "Vanified" is my Exaple_Framework
pod 'Specta', '~> 0.2.1'
pod 'Expecta'
end
target 'Tests', :exclusive => true do
end注意事项:在此之前,我遵循https://cocoapods.org/给出的步骤
发布于 2015-04-25 07:08:36
:path =>指的是到达另一个豆荚的本地路径。
也就是说,这没有道理:
target ‘Vanified', :exclusive => true do
pod "Vanified", :path => "../"
end这基本上意味着“将Vanified作为Vanified荚的本地依赖项获取”。
您也不需要在测试目标中引用Vanified。
相反,您应该使测试目标依赖并链接到您的pod目标(技术上,静态库或动态框架)。
您可以通过访问Build Phases作为测试目标,并确保(1) Vanified在Target Dependencies中,(2) Vanified在Link Binary with Libraries中。
发布于 2017-01-31 06:34:39
我想范妮莎不是你的框架,我认为你想在你的项目中安装另一个框架& Vanified是你的项目名称。
target ‘ Vanified', :exclusive => true do
pod "Example_Framework", :path => "../"
end,这对你有帮助。。
发布于 2017-01-31 09:21:54
看看你对吊舱安装是否陌生,我总是这样做。
target 'TargetName' do
use_frameworks!
# Pods for Yummy
pod 'Your_Example_Frameworks1', '~> 1.0.0'
pod ‘Your_Example_Frameworks2’
target 'TargetName Tests' do
inherit! :search_paths
# Pods for testing
end
target 'TargetName UITests' do
inherit! :search_paths
# Pods for testing
end
end希望这能帮你
https://stackoverflow.com/questions/29862014
复制相似问题