大佬教程收集整理的这篇文章主要介绍了如何指定哪个构建目标包含特定的 swift 包依赖项?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
使用 swift 包管理器,我的项目中包含一个 swift 包,我只希望它在测试目标和 ui 测试目标中可用。如何选择可以访问 swift 包的目标?
最简单的方法是使用 cocoapods
# Uncomment the next line to define a global platform for your project
platform :ios,'13.0'
target 'MyApp' do
# Comment the next line if you don't want to use dynamic frameworks
#use_frameworks!
#these are the main app frameworks
pod 'Alamofire'
# Pods for MyApp
target 'MyAppTests' do
inherit! :search_paths
# Pods for tesTing
# here would be your tesTing frameworks
pod 'myTestFramework'
end
target 'MyAppUITests' do
# Pods for tesTing
# and here your UI tests framework
end
end
以上是大佬教程为你收集整理的如何指定哪个构建目标包含特定的 swift 包依赖项?全部内容,希望文章能够帮你解决如何指定哪个构建目标包含特定的 swift 包依赖项?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。