1 Star 0 Fork 0

lanpeng/Masonary

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Podfile 1.45 KB
一键复制 编辑 原始数据 按行查看 历史
lanpeng 提交于 2019-02-01 08:00 . update commit2
workspace 'Masonry'
platform :ios, '8.0'
#commit2
project 'Examples/Masonry iOS Examples'
target 'Masonry iOS Examples' do
pod 'Masonry', :path => './'
end
target 'Masonry iOS Tests' do
project 'Tests/Masonry Tests'
pod 'Expecta'
end
target 'MasonryTestsLoader' do
project 'Tests/Masonry Tests'
pod 'Masonry', :path => './'
end
# add settings needed to generate test coverage data
post_install do |installer|
COV_TARGET_NAME = "Pods-MasonryTestsLoader"
EXPORT_ENV_PHASE_NAME = "Export Environment Vars"
EXPORT_ENV_PHASE_SCRIPT = "export | egrep '( BUILT_PRODUCTS_DIR)|(CURRENT_ARCH)|(OBJECT_FILE_DIR_normal)|(SRCROOT)|(OBJROOT)' > $SRCROOT/../script/env.sh"
# find target
classy_pods_target = installer.pods_project.targets.find{ |target| target.name == COV_TARGET_NAME }
unless classy_pods_target
raise ::Pod::Informative, "Failed to find '" << COV_TARGET_NAME << "' target"
end
# add build settings
classy_pods_target.build_configurations.each do |config|
config.build_settings['GCC_GENERATE_TEST_COVERAGE_FILES'] = 'YES'
config.build_settings['GCC_INSTRUMENT_PROGRAM_FLOW_ARCS'] = 'YES'
end
# add build phase
phase = classy_pods_target.shell_script_build_phases.select{ |bp| bp.name == EXPORT_ENV_PHASE_NAME }.first ||
classy_pods_target.new_shell_script_build_phase(EXPORT_ENV_PHASE_NAME)
phase.shell_path = "/bin/sh"
phase.shell_script = EXPORT_ENV_PHASE_SCRIPT
phase.show_env_vars_in_log = '0'
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Objective-C
1
https://gitee.com/lanpeng/Masonary.git
git@gitee.com:lanpeng/Masonary.git
lanpeng
Masonary
Masonary
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385