Podfile配置项目代码

2021-01-06  本文已影响0人  writeSpace

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
上一篇 下一篇

猜你喜欢

热点阅读