我有这个不是我写的脚本,它应该构建.ipa不同构建风格的 s:import path from "path";import { execSync } from "child_process";import { name, iosDirectory } from "../../app.json";import { version } from "../../package.json";import { resolveFromRoot, distDir, createLogger } from "../build";const getProcessOptions = () => { return { env: Object.assign({}, process.env, { // used to skip packager, since we default to release bundler is built in RCT_NO_LAUNCH_PACKAGER: true, CI_IOS_VERSION_NAME: version // CI_IOS_BUILD_NUMBER: build, }) };};const buildProcess = ({ xcodebuildArgs }) => { return `xcodebuild ${xcodebuildArgs.join(" ")}`;};const archiveProject = ({ xcodeProject, scheme, configuration = "Release", buildPath, archivePath}) => { const xcodebuildArgs = [ xcodeProject.isWorkspace ? "-workspace" : "-project", xcodeProject.name, "-configuration", configuration, "-scheme", scheme, "-derivedDataPath", buildPath, "-archivePath", archivePath, "archive", "-UseModernBuildSystem=NO" ]; return buildProcess({ xcodebuildArgs });};const exportProject = ({ archivePath, exportOptionsPlist }) => { const xcodebuildArgs = [ "-archivePath", archivePath, "-exportPath", distDir, "-exportOptionsPlist", exportOptionsPlist, "-exportArchive" ]; return buildProcess({ xcodebuildArgs });};const run = () => { const logger = createLogger("ios builds"); const projectPath = resolveFromRoot( path.join(iosDirectory, `${name}.xcworkspace`) );
1 回答
繁华开满天机
TA贡献1816条经验 获得超4个赞
我通过运行以下命令解决了这个问题:
gem list | grep sqlite3
gem install sqlite3 --platform=ruby
rvm use system --default
添加回答
举报
0/150
提交
取消