码迷,mamicode.com
首页 > 其他好文 > 详细

fastlane 编译 framework

时间:2020-05-15 15:23:35      阅读:91      评论:0      收藏:0      [点我收藏+]

标签:def   modern   ram   mod   and   builds   phone   out   fas   

下面为使用fastlane编译framework的片段:

def ios_build_framework( project_path, target ,code_path)
  #build for iphonesimulator
  xcodebuild(
      project: project_path,
      target: target,
      configuration: "Release",
      silent: false,
      clean: true,
      build: true,
      xcargs: "-UseModernBuildSystem=0 -sdk ‘iphonesimulator‘"
  )
  #build for iphone
  xcodebuild(
      project: project_path,
      target: target,
      configuration: "Release",
      silent: false,
      clean: true,
      build: true,
      xcargs: "-UseModernBuildSystem=0",
  )
  # Two libraries are combined into one, support x86_64, armv7 ,arm64
  command = "lipo -create #{code_path}/build/Release-iphoneos/#{target}.framework/#{target} #{code_path}/build/Release-iphonesimulator/#{target}.framework/#{target} -output #{code_path}/build/Release-iphoneos/#{target}.framework/#{target} "
  result = `#{command}`
end

fastlane 编译 framework

标签:def   modern   ram   mod   and   builds   phone   out   fas   

原文地址:https://www.cnblogs.com/qiyer/p/12895053.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!