1、导入同级目录ruby文件
require_relative
2、导入同级目录所有.rb文件
Dir[File.dirname(__FILE__) + '/lib/*.rb'].each {|file| require file }
3、导入根目录文件
relative
4、模拟器配置arm
post_install do |installer|
puts '配置 Pods Project.'
reference_file(installer, 'customRuby.rb')
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
end
end
网友评论