标签:def modern ram mod and builds phone out fas
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
标签:def modern ram mod and builds phone out fas
原文地址:https://www.cnblogs.com/qiyer/p/12895053.html