美文网首页
Xcode 多个target Podfile 写法

Xcode 多个target Podfile 写法

作者: 博士猫_BSM | 来源:发表于2022-07-06 14:04 被阅读0次
    # Uncomment the next line to define a global platform for your project
    # platform :ios, '13.0'
    targetsArray = [‘TestDEV', 'TestProd']
    targetsArray.each do |t|
      target t do
        # Comment the next line if you don't want to use dynamic frameworks
        use_frameworks!
        inhibit_all_warnings!
        # Pods for Test
        pod 'Moya', '~> 14.0'
      end
    end
    target 'TestTests' do
      inherit! :search_paths
      # Pods for testing
    end
    target 'TestUITests' do
      # Pods for testing
    end
    post_install do |installer|
      installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings['ENABLE_BITCODE'] = 'NO'
        end
      end
    end
    

    相关文章

      网友评论

          本文标题:Xcode 多个target Podfile 写法

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