美文网首页
Podfile配置项目代码

Podfile配置项目代码

作者: writeSpace | 来源:发表于2021-01-06 10:42 被阅读0次

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

相关文章

网友评论

      本文标题:Podfile配置项目代码

      本文链接:https://www.haomeiwen.com/subject/whlnoktx.html