为了账号安全,请及时绑定邮箱和手机立即绑定

错误:exportArchive:无法读取数据,因为它的格式不正确

错误:exportArchive:无法读取数据,因为它的格式不正确

临摹微笑 2021-11-12 14:14:24
我有这个不是我写的脚本,它应该构建.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


查看完整回答
反对 回复 2021-11-12
  • 1 回答
  • 0 关注
  • 168 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信